Sayyidina Abu Huraira (RA) reported that Allah’s Messenger said, “Every child is born on the religion (of Islam). Then his parents make him a Jew, a Christian or a polytheist.” Someone said, “O Messenger of Allah, (what about) those who die before (their parents convert them)?” He said, “Allah knows best what they would have done (if they had survived).”
[Bukhari 1358, Muslim 2658]