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.
ahmad:13132Ibn Abū ʿAdī > Ḥumayd > Anas

[Machine] While the Messenger of Allah ﷺ was praying, he heard a baby crying, so he hurriedly finished his prayer. We thought that he had shortened his prayer because of the baby, as his mother was also praying.  

أحمد:١٣١٣٢حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ عَنْ حُمَيْدٍ عَنْ أَنَسٍ قَالَ

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