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.’”
It was narrated that ‘Uthman bin Abul-‘As said: “The Messenger of Allah (ﷺ) said: ‘I hear an infant crying so I make the prayer short.’”
It was narrated from ‘Abdullah bin Abu Qatadah that his father said: “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.’”