Hadithcore
Riyad as-Salihin, 953

Abu Hurairah (May Allah be pleased with him) reported:

The Messenger of Allah (ﷺ) said, "A Muslim whose three children die (in infancy) will not be touched by the Fire (of Hell) except for the fulfillment of Allah's Oath." <b>[Al-Bukhari and Muslim]</b>. <b>[Allah's Oath here refers to His Ayah: "There is not one of you but will cross over it (Hell)." (19:71) And the crossing will be across the 'Bridge' set over the Hell.]</b>

وعن أبي هريرة رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ “لا يموت لأحد من المسلمين ثلاثة من الولد لا تمسه النار إلا تحلة القسم‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏

References1 variant
In-Book Reference
Book 6, Hadith 60
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) Young children are shown mercy by their parents. So, if a person’s young children die and he endures that patiently and expects the divine reward, they will shield him from Hellfire.<br> 2) The coming of people to Hellfire is true and inevitable. However, the believers will only pass on the Sirāt, without being subject to any torture.<br> 3) The believers will enter Paradise by the grace and mercy of Allah Almighty, and none will enter it on account of their deeds.