Anas bin Malik reported,

I never prayed behind any imam whose prayer was lighter or more complete than that of the Prophet ﷺ. If he heard a child crying, he would shorten the prayer out of concern that the child's mother might be distressed.

Bukhari 708

Sahih

حدثنا خالد بن مخلد قال حدثنا سليمان بن بلال قال حدثنا شريك بن عبد الله قال سمعت

أنس بن مالك يقول

ما صليت وراء إمام قط أخف صلاة ولا أتم من النبي ﷺ وإن كان ليسمع بكاء الصبي فيخفف مخافة أن تفتن أمه

البخاري 708صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Whoever shortens the prayer when a child cries
Numbering
Darussalam 708
Bukhari 708