Anas bin Malik reported,

I have never prayed behind any imam whose prayer was lighter or more complete than that of the Messenger of Allah ﷺ. If he heard a child crying, he would shorten the prayer for fear of distressing the mother.

Azami 2276

Sahih

عن أنس قال

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

الأعظمي 2276صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Shortening the prayer upon hearing a child crying
Numbering
Jami al-Kamil 2276 (2nd edition)
Azami 2276