Language:
كتاب الصلاة
8  
Prayers (Salat)
(106)
Chapter: If a small girl is carried on one's neck during the Salat (prayer)
(106)
باب إِذَا حَمَلَ جَارِيَةً صَغِيرَةً عَلَى عُنُقِهِ فِي الصَّلاَةِ
Sahih al-Bukhari 516

Narrated Abu Qatada Al-Ansari:

Allah's Messenger (ﷺ) was praying and he was carrying Umama the daughters of Zainab, the daughter of Allah's Messenger (ﷺ) and she was the daughter of 'As bin Rabi`a bin `Abd Shams. When he prostrated, he put her down and when he stood, he carried her (on his neck).

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ عَامِرِ بْنِ عَبْدِ اللَّهِ بْنِ الزُّبَيْرِ، عَنْ عَمْرِو بْنِ سُلَيْمٍ الزُّرَقِيِّ، عَنْ أَبِي قَتَادَةَ الأَنْصَارِيِّ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُصَلِّي وَهْوَ حَامِلٌ أُمَامَةَ بِنْتَ زَيْنَبَ بِنْتِ رَسُولِ اللَّهِ صلى الله عليه وسلم وَلأَبِي الْعَاصِ بْنِ رَبِيعَةَ بْنِ عَبْدِ شَمْسٍ، فَإِذَا سَجَدَ وَضَعَهَا، وَإِذَا قَامَ حَمَلَهَا‏.‏
Reference : Sahih al-Bukhari 516
In-book reference : Book 8, Hadith 163
USC-MSA web (English) reference : Vol. 1, Book 9, Hadith 495
  (deprecated numbering scheme)