Yahya bin Saeed said: A woman from our family gave a gift while she was pregnant. Qasim (ibn Muhammad, may Allah have mercy on him) was asked about this, and he said: The gift will be taken from the whole wealth. And Yahya said: We say that if she gave the gift when the labor pains had started, then it will be taken from one third of the wealth.
Hadith Referenceسنن دارمي / من كتاب الوصايا / 3251