Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:13458Abū al-Ḥusayn b. al-Faḍl al-Qaṭṭān> Abū Sahl b. Ziyād al-Qaṭṭān > Ismāʿīl b. Isḥāq al-Qāḍī > ʿAmr b. Marzūq And ʾAbū Muṣʿab al-Zuhrī > Mālik b. Anas > Ibn Shihāb > Saʿīd b. al-Musayyib > Abū Hurayrah

[Machine] Narrated by the Prophet ﷺ, he said: "No one from among the Muslims will have three children who die before reaching the age of puberty, except that they will be a means of protection for them from the Hellfire."  

البيهقي:١٣٤٥٨أَخْبَرَنَاهُ أَبُو الْحُسَيْنِ بْنُ الْفَضْلِ الْقَطَّانُ بِبَغْدَادَ ثنا أَبُو سَهْلِ بْنُ زِيَادٍ الْقَطَّانُ ثنا إِسْمَاعِيلُ بْنُ إِسْحَاقَ الْقَاضِي ثنا عَمْرُو بْنُ مَرْزُوقٍ وَأَبُو مُصْعَبٍ الزُّهْرِيُّ كِلَاهُمَا عَنْ مَالِكِ بْنِ أَنَسٍ عَنِ ابْنِ شِهَابٍ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ عَنْ أَبِي هُرَيْرَةَ ؓ

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

أَخْرَجَهُ الْبُخَارِيُّ وَمُسْلِمٌ فِي الصَّحِيحِ مِنْ حَدِيثِ مَالِكٍ قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ وَيُقَالُ إِنَّ الرَّجُلَ لَيُرْفَعُ بِدُعَاءِ وَلَدِهِ مِنْ بَعْدِهِ قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ وَهَذَا قَوْلُ سَعِيدِ بْنِ الْمُسَيِّبِ

See similar narrations below:

Collected by Mālik
malik:16-39Yaḥyá > Mālik > Ibn Shihāb > Saʿīd b. al-Musayyab > Abū Hurayrah

Yahya related to me from Malik from Ibn Shihab from Said ibn al- Musayyab from Abu Hurayra that the Messenger of Allah ﷺ said, "No muslim who has three children die will be touched by the Fire except to fulfil Allah's oath."  

مالك:١٦-٣٩حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنِ ابْنِ شِهَابٍ عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ عَنْ أَبِي هُرَيْرَةَ

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