The Messenger of Allah ﷺ said, "No child is born except upon this religion, until his tongue speaks for him. Then his parents make him a Jew, a Christian, or a polytheist."They asked, "Messenger of Allah, what about those who die before that?"He replied, "Allah knows best what they would have done."
حدثنا أبو معاوية عن الأعمش عن أبي صالح
قال رسول الله ﷺ ما من مولود يولد إلا على هذه الملة حتى يبين عنه لسانه فأبواه يهودانه أو ينصرانه أو يشركانه قالوا يا رسول الله فكيف ما كان قبل ذلك قال الله أعلم بما كانوا عاملين