Abu Hurairah reported,

The Messenger of Allah ﷺ said, "No Muslim loses three of his children to death and is then touched by the Fire, except for the brief moment required to fulfill the oath."In another narration, "No Muslim loses three of his children to death and then enters the Fire, except for the brief moment required to fulfill the oath."In yet another narration, "None of you women loses three of her children, bearing it patiently for the sake of Allah's reward, except that she will enter Paradise."

Azami 3361

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: لا يموت لأحد من المسلمين ثلاثة من الولد فتمسه النار إلا تحلة القسم. وفي رواية: لا يموت لمسلم ثلاثة من الولد فيلج النار إلا تحلة القسم. وفي رواية أخرى: لا يموت لإحداكن ثلاثة من الولد فتحتسبه إلا دخلت الجنة.

الأعظمي 3361صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Patience in tribulation and illness
Section
Whoever had children die and sought reward will enter Paradise
Numbering
Jami al-Kamil 3361 (2nd edition)
Azami 3361