Question: We read in some Islamic books that when a newly delivered, breastfeeding, or pregnant woman breaks her fast in Ramadaan, she must make up for the days on which she breaks her fast. However, I read in the book entitled, Tuhfah Al-`Aroos that a woman who has just delivered, is breastfeeding, or pregnant does not have to make up for her missed days of fast, and she should only offer Fidyah (ransom).
This view is reinforced by a Hadeeth that reads: When the pregnant and breastfeeding women break their fast, they have to offer Fidyah and do not have to make up for the days in which they broke fast . (Reported by Ibn `Umar and Ibn `Abbaas) The author of Tuhfah Al-`Aroos is Mahmood Mahdee Al-Istanbullee, and the above quote is mentioned in page 302.
Answer: This woman experienced non-menstrual bleeding, and thus it is inconsiderable. She did well when she continued fasting and praying; and if the case is exactly as you mentioned, her fast and Salaah before the miscarriage are valid and she does not have to compensate. After the miscarriage, however, the rulings vary according to the time in which the miscarriage took place. They are classified according to the four stages of pregnancy as follows… read more here.