Khadeejah ؓ asked the Prophet ﷺ about two children of her who had died during the jahiliyyah. The Messenger of Allah ﷺ said: “They are in Hell.ʿ When he saw that she was upset, he said: “If you saw where they are now, you would hate them.” She said: O Messenger of Allah ﷺ, about my child from you? He said: ʿHe is in Paradise.ʿ Then the Messenger of Allah ﷺ said: ʿThe believers and their children will be in Paradise and the mushrikeen and their children will be in Hell.” Then the Messenger of Allah ﷺ recited: “And those who believe and whose offspring follow them in Faith, - to them shall We join their offspring...” [At-Toor 52:25].
سَأَلَتْ خَدِيجَةُ النَّبِيَّ ﷺ عَنْ وَلَدَيْنِ مَاتَا لَهَا فِي الْجَاهِلِيَّةِ فَقَالَ رَسُولُ اللهِ ﷺ هُمَا فِي النَّارِ قَالَ فَلَمَّا رَأَى الْكَرَاهِيَةَ فِي وَجْهِهَا قَالَ لَوْ رَأَيْتِ مَكَانَهُمَا لَأَبْغَضْتِهِمَا قَالَتْ يَا رَسُولَ اللهِ فَوَلَدِي مِنْكَ؟ قَالَ فِي الْجَنَّةِ قَالَ ثُمَّ قَالَ رَسُولُ اللهِ ﷺ إِنَّ الْمُؤْمِنِينَ وَأَوْلادَهُمْ فِي الْجَنَّةِ وَإِنَّ الْمُشْرِكِينَ وَأَوْلادَهُمْ فِي النَّارِ ثُمَّ قَرَأَ رَسُولُ اللهِ ﷺ (وَالَّذِينَ آمَنُوا وَاتَّبَعَتْهُمْ ذُرِّيَّتُهُمْ بِإِيمَانٍ أَلْحَقْنَا بِهِمْ ذُرِّيَّاتِهِمْ [الطور 21]