The Prophet ﷺ was asked about the children of the polytheists, and he replied, "Allah knows best what they would have done."
حدثنا يحيى عن محمد بن عمرو قال حدثنا أبو سلمة
أن النبي ﷺ سئل عن أطفال المشركين فقال الله أعلم بما كانوا عاملين
Its isnad is sahih, mentioned previously at 9078.