Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(18)
Chapter: To be merciful to children and embrace them
(18)
باب رَحْمَةِ الْوَلَدِ وَتَقْبِيلِهِ وَمُعَانَقَتِهِ
Sahih al-Bukhari 5999

Narrated `Umar bin Al-Khattab:

Some Sabi (i.e. war prisoners, children and woman only) were brought before the Prophet (ﷺ) and behold, a woman amongst them was milking her breasts to feed and whenever she found a child amongst the captives, she took it over her chest and nursed it (she had lost her child but later she found him) the Prophet said to us, "Do you think that this lady can throw her son in the fire?" We replied, "No, if she has the power not to throw it (in the fire)." The Prophet (ﷺ) then said, "Allah is more merciful to His slaves than this lady to her son."

حَدَّثَنَا ابْنُ أَبِي مَرْيَمَ، حَدَّثَنَا أَبُو غَسَّانَ، قَالَ حَدَّثَنِي زَيْدُ بْنُ أَسْلَمَ، عَنْ أَبِيهِ، عَنْ عُمَرَ بْنِ الْخَطَّابِ ـ رضى الله عنه ـ قَدِمَ عَلَى النَّبِيِّ صلى الله عليه وسلم سَبْىٌ، فَإِذَا امْرَأَةٌ مِنَ السَّبْىِ قَدْ تَحْلُبُ ثَدْيَهَا تَسْقِي، إِذَا وَجَدَتْ صَبِيًّا فِي السَّبْىِ أَخَذَتْهُ فَأَلْصَقَتْهُ بِبَطْنِهَا وَأَرْضَعَتْهُ، فَقَالَ لَنَا النَّبِيُّ صلى الله عليه وسلم ‏"‏ أَتَرَوْنَ هَذِهِ طَارِحَةً وَلَدَهَا فِي النَّارِ ‏"‏‏.‏ قُلْنَا لاَ وَهْىَ تَقْدِرُ عَلَى أَنْ لاَ تَطْرَحَهُ‏.‏ فَقَالَ ‏"‏ اللَّهُ أَرْحَمُ بِعِبَادِهِ مِنْ هَذِهِ بِوَلَدِهَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 5999
In-book reference : Book 78, Hadith 30
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 28
  (deprecated numbering scheme)