BAYHAQI 12143:
from al-Aswad b. Sarīʿ —
[Machine] Narrated by the Prophet ﷺ , "Every newborn is born on the Fitrah (natural inclination towards goodness) until his parents convert him to Judaism or Christianity or change his nature. Al-Shafi'i, in the old narration of Abu 'Abd al-Rahman al-Baghdadi, stated that the Prophet ﷺ said, 'Every newborn is born on the Fitrah (the natural inclination upon which Allah has created mankind), and it is the parents who turn them into one of the two beliefs: faith or disbelief.' They have no choice in themselves, and the judgment is only for their parents. So, as their parents were on the day they were born, they are either believers, so they are judged by their faith, or disbelievers, so they are judged by their disbelief."
البيهقي ١٢١٤٣:
عن الاسود بن سريع —
عَنِ النَّبِيِّ ﷺ قَالَ كُلُّ مَوْلُودٍ يُولَدُ عَلَى الْفِطْرَةِ حَتَّى يُعْرِبَ عَنْ نَفْسِهِ زَادَ فِيهِ غَيْرُهُ فَأَبَوَاهُ يُهَوِّدَانِهِ وَيُنَصِّرَانِهِ قَالَ الشَّافِعِيُّ فِي الْقَدِيمِ فِي رِوَايَةِ أَبِي عَبْدِ الرَّحْمَنِ الْبَغْدَادِيِّ عَنْهُ قَوْلُ النَّبِيِّ ﷺ كُلُّ مَوْلُودٍ يُولَدُ عَلَى الْفِطْرَةِ الَّتِي فَطَرَ اللهُ عَلَيْهَا الْخَلْقَ فَجَعَلَهُمْ رَسُولُ اللهِ ﷺ مَا لَمْ يُفْصِحُوا بِالْقَوْلِ فَيَخْتَارُوا أَحَدَ الْقَوْلَيْنِ؛ الْإِيمَانَ أَوِ الْكُفْرَ لَا حُكْمَ لَهُمْ فِي أَنْفُسِهِمْ إِنَّمَا الْحُكْمُ لَهُمْ بِآبَائِهِمْ فَمَا كَانَ آبَاؤُهُمْ يَوْمَ يُولَدُونَ فَهُوَ بِحَالِهِ إِمَّا مُؤْمِنٌ فَعَلَى إِيمَانِهِ أَوْ كَافِرٌ فَعَلَى كُفْرِهِ
hadithunlocked.com