Abu Qatada reported,

The Prophet ﷺ said, "I begin the prayer intending to lengthen it, but then I hear a child crying, so I shorten my prayer, disliking to cause hardship to his mother."Bishr bin Bakr, Ibn Mubarak, and Baqiyyah corroborated this from Uzai.

Bukhari 707

Sahih

حدثنا إبراهيم بن موسى قال أخبرنا الوليد بن مسلم قال حدثنا الأوزاعي عن يحيى بن أبي كثير عن عبد الله بن أبي قتادة

عن أبيه أبي قتادة

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

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