Abu Qatada reported,

The Messenger of Allah ﷺ said, "I stand up to pray intending to prolong the prayer, but then I hear a child crying, so I shorten my prayer, disliking to cause hardship to his mother."

Bukhari 868

Sahih

حدثنا محمد بن مسكين قال حدثنا بشر بن بكر أخبرنا الأوزاعي حدثني يحيى بن أبي كثير

عن عبد الله بن أبي قتادة الأنصاري عن أبيه قال

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

البخاري 868صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Adhan
Chapter
Waiting for the people for the standing of the knowledgeable imam
Numbering
Darussalam 868
Bukhari 868