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."In another narration, "Those of them who die young."

Azami 1083

Sahih

عن أبي هريرة، قال

سئل رسول الله ﷺ عن ذراري المشركين، فقال: الله أعلم بما كانوا عاملين. وفي رواية: من يموت منهم صغيرا.

الأعظمي 1083صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Prophet ﷺ was asked about the offspring of the polytheists in the Hereafter and he said, "Allah knows best what they would have done"
Numbering
Jami al-Kamil 1083 (2nd edition)
Azami 1083