Anas bin Malik reported,

While the Messenger of Allah ﷺ was praying, he heard a child crying, so he shortened his prayer. We thought he made it brief because of the child, since the child's mother was praying with us.

Ahmad 13132

Sahih

حدثنا ابن أبي عدي عن حميد

عن أنس قال

بينما رسول الله ﷺ يصلي إذ سمع بكاء صبي فتجوز في صلاته فظننا أنه إنما خفف من أجل الصبي أن أمه كانت في الصلاة

أحمد 13132صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13132
Ahmad 13132