The Prophet (ﷺ) said, "No Muslim whose three children died will go to the Fire except for Allah's oath (i.e. everyone has to pass over the bridge above the lake of fire)."
Sahih al-Bukhari Book 23, Hadith 13