Sunan Ibn Majah, Book 5, Hadith 187 (Ibn Majah 989)

It was narrated that Anas bin Malik said:

“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.’”