Yahya related to me from Malik from Muhammad ibn Abi Bakr ibn Amr ibn Hazm from his father from Abu'n-Nadr as-Salami that the Messenger of Allah ﷺ said, "If three of a muslim's children die, and he remains content with that, they will be a protection for him from the Fire." A woman who was with the Messenger of Allah ﷺ said, "Or two, Messengerof Allah?", and he said, "Or two."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ يَمُوتُ لأَحَدٍ مِنَ الْمُسْلِمِينَ ثَلاَثَةٌ مِنَ الْوَلَدِ فَيَحْتَسِبُهُمْ إِلاَّ كَانُوا جُنَّةً مِنَ النَّارِ فَقَالَتِ امْرَأَةٌ عِنْدَ رَسُولِ اللَّهِ ﷺ يَا رَسُولَ اللَّهِ أَوِ اثْنَانِ قَالَ أَوِ اثْنَانِ