Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Every newborn is born upon the natural disposition. It is the parents who turn the child into a Jew or a Christian, just as livestock produce their young intact. Do you find any of them mutilated before you yourselves mutilate them?"They asked, "Messenger of Allah, what do you say about one who dies as a young child?"He replied, "Allah knows best what they would have done."

Azami 1078

Sahih

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

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

الأعظمي 1078صحيح
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 1078 (2nd edition)
Azami 1078