Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:470aYaḥyá b. Yaḥyá > Jaʿfar b. Sulaymān > Thābit al-Bunānī > Anas

The Messenger of Allah ﷺ would listen to the crying of a lad in the company of his mother, in prayer, and he would recite a short surah or a small surah.  

مسلم:٤٧٠aوَحَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَخْبَرَنَا جَعْفَرُ بْنُ سُلَيْمَانَ عَنْ ثَابِتٍ الْبُنَانِيِّ عَنْ أَنَسٍ قَالَ

أَنَسٌ كَانَ رَسُولُ اللَّهِ ﷺ يَسْمَعُ بُكَاءَ الصَّبِيِّ مَعَ أُمِّهِ وَهُوَ فِي الصَّلاَةِ فَيَقْرَأُ بِالسُّورَةِ الْخَفِيفَةِ أَوْ بِالسُّورَةِ الْقَصِيرَةِ  


See similar narrations below:

Collected by Aḥmad, Bayhaqī
ahmad:12587Ibrāhīm b. Mahdī > Jaʿfar b. Sulaymān > Thābit al-Bunānī > Anas b. Mālik

[Machine] "The Messenger of Allah ﷺ would hear the crying of a child with his mother while he was praying, so he would recite a short surah."  

أحمد:١٢٥٨٧حَدَّثَنَا إِبْرَاهِيمُ بْنُ مَهْدِيٍّ حَدَّثَنَا جَعْفَرُ بْنُ سُلَيْمَانَ قَالَ حَدَّثَنَا ثَابِتٌ الْبُنَانِيُّ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

كَانَ رَسُولُ اللهِ ﷺ يَسْمَعُ بُكَاءَ الصَّبِيِّ مَعَ أُمِّهِ وَهُوَ فِي الصَّلَاةِ فَيَقْرَأُ بِالسُّورَةِ الْخَفِيفَةِ قَالَ جَعْفَرٌ أَوْ بِالسُّورَةِ الْقَصِيرَةِ  

bayhaqi:4041Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr Aḥmad b. Isḥāq And ʿAlī b. Ḥimshādh > ʿAlī > Ismāʿīl b. Qutaybah > Yaḥyá b. Yaḥyá > Jaʿfar b. Sulaymān > Thābit al-Bunānī > Anas

The Messenger of Allah ﷺ would listen to the crying of a lad in the company of his mother, in prayer, and he would recite a short surah or a small surah. (Using translation from Muslim 470a)   

البيهقي:٤٠٤١أنبأ أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرٍ أَحْمَدُ بْنُ إِسْحَاقَ وَعَلِيُّ بْنُ حِمْشَاذَ قَالَ عَلِيٌّ ثنا إِسْمَاعِيلُ بْنُ قُتَيْبَةَ ثنا يَحْيَى بْنُ يَحْيَى أنبأ جَعْفَرُ بْنُ سُلَيْمَانَ عَنْ ثَابِتٍ الْبُنَانِيِّ عَنْ أَنَسٍ قَالَ

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

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ يَحْيَى بْنِ يَحْيَى