The Prophet ﷺ was asked about the offspring of pagans (Mushrikeen); so he said, "Allah knows what sort of deeds they would have done."
أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ ؓ يَقُولُ سُئِلَ النَّبِيُّ ﷺ عَنْ ذَرَارِيِّ الْمُشْرِكِينَ فَقَالَ اللَّهُ أَعْلَمُ بِمَا كَانُوا عَامِلِينَ