The ruling on fasting for a pregnant woman and a breastfeeding woman
❀ «عن انس بن مالك رضى الله عنه أنه أتى النبى صلى الله عليه وسلم بالمدينة وهو يتغدى، فقال له النبى صل الله عليه وسلم: هلم إلى الغداء، فقال: إني صائم، فقال له النبى صلى الله عليه وسلم : إن الله عزوجل وضع للمسافر الصوم وشطر الصلاة، وعن الحبلى والمرضع.»
Anas ibn Malik (may Allah be pleased with him) said that he came to the Prophet ﷺ in Medina while he ﷺ was eating the midday meal. The Prophet ﷺ said: “Come and eat.” He said: “I am fasting.” Then the Prophet ﷺ said to him: “Allah, the Mighty and Majestic, has removed fasting and half of the prayer from the traveller, and (fasting) from the pregnant woman and the breastfeeding woman.”
Note: This hadith does not mention whether the pregnant woman and the breastfeeding woman will make up their fasts later or not. Some scholars say that they will not make them up, but will instead give a fidya (compensation) for each day. However, the four Imams and the majority of scholars say that if they fear harm to themselves or to the child, they may leave the fast, but making it up later will be obligatory.