Sunan Ibn Majah, Book 7, Hadith 31 (Ibn Majah 1668)
It was narrated that Anas bin Malik said:
“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.”