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.
ibnmajah:990Ismāʿīl b. Abū Karīmah al-Ḥarrānī > Muḥammad b. Salamah > Muḥammad b. ʿAbdullāh b. ʿUlāthah > Hishām b. Ḥassān > al-Ḥasan > ʿUthmān b. Abū al-ʿĀṣ

“The Messenger of Allah ﷺ said: ‘I hear an infant crying so I make the prayer short.’”  

ابن ماجة:٩٩٠حَدَّثَنَا إِسْمَاعِيلُ بْنُ أَبِي كَرِيمَةَ الْحَرَّانِيُّ حَدَّثَنَا مُحَمَّدُ بْنُ سَلَمَةَ عَنْ مُحَمَّدِ بْنِ عَبْدِ اللَّهِ بْنِ عُلاَثَةَ عَنْ هِشَامِ بْنِ حَسَّانٍ عَنِ الْحَسَنِ عَنْ عُثْمَانَ بْنِ أَبِي الْعَاصِ قَالَ

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


See similar narrations below:

Collected by Nasāʾī's Kubrá, Suyūṭī
nasai-kubra:901Sūwayd b. Naṣr > ʿAbdullāh > al-Awzāʿī > Yaḥyá b. Abū Kathīr > ʿAbdullāh b. Abū Qatādah from his father

"I stand in prayer, then I hear a child crying, so I make my prayer brief, because I do not want to cause hardship for his mother." (Using translation from Nasāʾī 825)  

الكبرى للنسائي:٩٠١أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ قَالَ أَخْبَرَنَا عَبْدُ اللهِ عَنِ الْأَوْزَاعِيِّ قَالَ حَدَّثَنِي يَحْيَى بْنُ أَبِي كَثِيرٍ عَنْ عَبْدِ اللهِ بْنِ أَبِي قَتَادَةَ عَنْ أَبِيهِ

عَنِ النَّبِيِّ ﷺ قَالَ «إِنِّي لَأَقُومُ فِي الصَّلَاةِ فَأَسْمَعُ بُكَاءَ الصَّبِيِّ فَأَتَجَوَّزُ فِي صَلَاتِي كَرَاهِيَةَ أَنْ أَشُقَّ عَلَى أُمِّهِ»