The Prophet (may Allah's peace and blessings be upon him) would start leading a congregational prayer intending to make the prayer long. However, if he heard an infant crying, he would shorten the prayer so that it would not be hard on the infant's mothers, since her heart would be distracted by the crying of her child.
دليل الفالحين لطرق رياض الصالحين، لابن علان، نشر دار الكتاب العربي. نزهة المتقين شرح رياض الصالحين، نشر: مؤسسة الرسالة، الطبعة الرابعة عشر، 1407ه - 1987م. شرح رياض الصالحين، لابن عثيمين، نشر: دار الوطن للنشر، الرياض، الطبعة: 1426ه. بهجة الناظرين شرح رياض الصالحين، للهلالي، نشر: دار ابن الجوزي.