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)."
عَنِ النَّبِيِّ ﷺ قَالَ لاَ يَمُوتُ لِمُسْلِمٍ ثَلاَثَةٌ مِنَ الْوَلَدِ فَيَلِجَ النَّارَ إِلاَّ تَحِلَّةَ الْقَسَمِ قَالَ أَبُو عَبْدِ اللَّهِ {وَإِنْ مِنْكُمْ إِلاَّ وَارِدُهَا}