Anas bin Malik reported,

Anas reported that the Messenger of Allah ﷺ would hear a child crying with its mother while he was leading the prayer, so he would recite a light surah or a short surah.

Muslim 1055

Sahih

و حدثنا يحيى بن يحيى أخبرنا جعفر بن سليمان عن ثابت البناني

عن أنس

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

مسلم 1055صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Commanding the imams to shorten the prayer while completing it
Numbering
Darussalam 1055
Muslim 1055