ADAB 143:

Abu Hurayra reported that the Messenger of Allah ﷺ said, "No Muslim who has had three of his children die young will enter the Fire, except to expiate an unfulfilled oath."

الأدب المفرد ١٤٣:

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لاَ يَمُوتُ لأَحَدٍ مِنَ الْمُسْلِمِينَ ثَلاَثَةٌ مِنَ الْوَلَدِ فَتَمَسَّهُ النَّارُ إِلاَّ تَحِلَّةَ الْقَسَمِ


Sound (Albānī)
al-Adab al-Mufrad > Children's Death > § The excellence of someone whose child has died
hadithunlocked.com