“The Messenger of Allah (ﷺ) said: ‘I get up to perform prayer and I intend to make it long, but then I hear an infant crying, so I make it short, because I do not like to cause distress to his mother.’”
Sunan Ibn Majah Book 5, Hadith 189