From Sahih Bukhari (Hadith 707):
Narrated `Abdullah bin 'Abi Qatada:My father said, "The Prophet (ﷺ) said, 'When I stand for prayer, I intend to prolong it but on hearing the cries of a child, I cut it short, as I dislike to trouble the child's mother
Reference: Bukhari 707