Umar bin Khattab reported,

Some captives were brought before the Messenger of Allah ﷺ. Among them was a woman searching anxiously, and whenever she found a child among the captives, she would take him, press him to her belly, and nurse him.The Messenger of Allah ﷺ said to us, "Do you think this woman would throw her child into the fire?"We replied, "No, by Allah, not if she could keep from doing so."The Messenger of Allah ﷺ then said, "Allah is more merciful to His servants than this woman is to her child."

Muslim 6978

Sahih

حدثني الحسن بن علي الحلواني ومحمد بن سهل التميمي واللفظ لحسن حدثنا ابن أبي مريم حدثنا أبو غسان حدثني زيد بن أسلم عن أبيه

عن عمر بن الخطاب أنه قال

قدم على رسول الله ﷺ بسبي فإذا امرأة من السبي تبتغي إذا وجدت صبيا في السبي أخذته فألصقته ببطنها وأرضعته فقال لنا رسول الله ﷺ أترون هذه المرأة طارحة ولدها في النار قلنا لا والله وهي تقدر على أن لا تطرحه فقال رسول الله ﷺ لله أرحم بعباده من هذه بولدها

مسلم 6978صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tawba
Chapter
Vastness of Allah's mercy and that it precedes His wrath
Numbering
Darussalam 6978
Muslim 6978