Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Every child is born upon the natural disposition, and it is his parents who make him a Jew, a Christian, or a polytheist."A man asked, "Messenger of Allah, what if he dies before that?"He replied, "Allah knows best what they would have done."

Azami 1080

Sahih

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

قال رسول الله ﷺ: ما من مولود إلا جرير، عن يولد على الفطرة، فأبواه يهودانه وينصرانه ويشر كانه. فقال رجل: يا رسول الله، أرأيت لو مات قبل ذلك؟ قال: الله أعلم بما كانوا عاملين.

الأعظمي 1080صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Every child is born upon the fitrah
Numbering
Jami al-Kamil 1080 (2nd edition)
Azami 1080