The Messenger of Allah ﷺ was asked about the children of the polytheists, and he replied, "Allah knows best what they would have done."
حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن عطاء بن يزيد الليثي
سئل رسول الله ﷺ عن أطفال المشركين فقال الله أعلم بما كانوا عاملين