Abu Qatada reported,

The Prophet ﷺ said, "I sometimes stand in prayer intending to prolong it, but then I hear a child crying, so I shorten my prayer, not wishing to cause hardship to his mother."

Azami 2277

Sahih

عن أبي قتادة

عن النبي ﷺ قال: إني لأقوم في الصلاة أريد أن أطول فيها، فأسمع بكاء الصبي فأتجوز في صلاتي كراهية أن أشق على أمه.

الأعظمي 2277صحيح
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 2277 (2nd edition)
Azami 2277