The excellence of someone whose child has died Al-Adab Al-Mufrad 143

Arabic hadith text
حَدَّثَنَا إِسْمَاعِيلُ قَالَ‏:‏ حَدَّثَنِي مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنِ ابْنِ الْمُسَيِّبِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللهِ صلى الله عليه وسلم قَالَ‏:‏ لاَ يَمُوتُ لأَحَدٍ مِنَ الْمُسْلِمِينَ ثَلاَثَةٌ مِنَ الْوَلَدِ، فَتَمَسَّهُ النَّارُ، إِلاَّ تَحِلَّةَ الْقَسَمِ‏.‏
Translation

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