Abu Hurairah reported,

The Messenger of Allah ﷺ was asked about the children of the polytheists, and he replied, "Allah knows best what they would have done."

Muslim 6762

Sahih

حدثنا أبو الطاهر أخبرنا ابن وهب أخبرني ابن أبي ذئب ويونس عن ابن شهاب عن عطاء بن يزيد

عن أبي هريرة

أن رسول الله ﷺ سئل عن أولاد المشركين فقال الله أعلم بما كانوا عاملين

مسلم 6762صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Decree
Chapter
Meaning of "every child is born upon fitrah" and the ruling on the death of children of disbelievers and children of Muslims
Numbering
Darussalam 6762
Muslim 6762