It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that he said: "When a pregnant woman and a nursing woman fear (for themselves or for the child), they may break the fast and feed one poor person for each day, and no make-up is required of them."
Musaddad narrated this with a hasan (good) chain, and Abu Dawud recorded it in his Sunan and remained silent about it, but his narration does not contain the words "and no make-up is required of them." This hadith also has a supporting narration (shahid) from the narration of Sayyiduna Anas bin Malik (may Allah be pleased with him), which al-Nasa'i and al-Tirmidhi recorded, and he graded it hasan (good). Al-Tirmidhi said that the scholars act upon this, while some scholars hold that the pregnant and the nursing woman, if they leave the fast, must both make it up and feed a poor person; this is the view of Sufyan al-Thawri, Malik, al-Shafi'i and Ahmad. According to some other scholars, they leave the fast and only feed, and no make-up is required of them, and if they wish, they may (only) make it up, and then feeding is not required of them; this is the view of Ishaq bin Rahawayh.