“The Messenger of Allah (ﷺ) granted a concession to pregnant women who fear for themselves, allowing them not to fast, and to nursing mothers who fear for their infants.”
Sunan Ibn Majah Book 7, Hadith 31