Islam emphasizes the preservation of health and well-being, and pregnant or breastfeeding women are encouraged to prioritize the health and nutrition of themselves and their children. While fasting is a significant aspect of Ramadan, exemptions are provided for those who are unable to fast due to valid reasons such as pregnancy or breastfeeding.
Sh. Ibn Bāz رحمه الله stated: "Fasting is obligatory upon the pregnant and nursing woman unless it is difficult for them to do so, and it is legislated for them to break the fast. Also, it is incumbent upon them to make up the fast they broke, just like the sick person or traveller. This is the position of the two regarding their situation.
A group of scholars from the Salaf were of the position that they feed a poor person and not make up the fast, just like the elderly man or woman. However, what is correct is that they are like the temporarily sick individual and traveller who break their fast and then make it up. It has been authentically narrated from the Prophet ﷺ from the hadīth of Anas Ibn Mālik what proves that they are akin to the temporarily sick or travelling person."
This hadīth referred to was narrated by Abū Dāwud (2408), al-Tirmidhī (715), al-Nasā'ī (2315) and Ibn Mājah (1667) with the wording: "Verily, Allāh has removed half of the prayer and fasting from the traveller, and fasting from the pregnant woman and nursing woman."
All praise is due to Allah, we pray Allah bless the Prophet Sallah Llah Alei Wasalam and let us die on the path of Qur'an and Sunnah.