“The Messenger of Allah (ﷺ) said: ‘I start prayer and I want to make it long, but then I hear an infant crying, so I make my prayer short, because I know the distress caused to the mother by his crying.’”
Sunan Ibn Majah Book 5, Hadith 187