Abu Hurairah reported,

The Messenger of Allah ﷺ said to some women of the Ansar, "No woman among you loses three of her children and bears it patiently seeking Allah's reward except that she enters Paradise."One of the women asked, "Or two, Messenger of Allah?"He replied, "Or two."

Azami 3363

Sahih

عن أبي هريرة

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

الأعظمي 3363صحيح
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 3363 (2nd edition)
Azami 3363