Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:30:30

So direct your face toward the religion, inclining to truth. ˹Adhere to˺ the fitrah of Allah upon which He has created ˹all˺ people. No change should there be in the creation of Allah. That is the correct religion, but most of the people do not know.  

So set your purpose, O Muhammad (s), for religion, as a hanīf, as one inclining to it — in other words, devote your religion, you and whoever follows you, purely to God — a nature given by God, upon which He originated mankind, and this ˹nature˺ is His religion: in other words, adhere to it. There is no changing God’s creation, His religion, that is to say, do not change it by becoming idolaters. That is the upright religion, the belief in God’s Oneness, but most people, namely, the Meccan disbelievers, do not know, ˹anything of˺ God’s Oneness —
القرآن:٣٠:٣٠

فَأَقِمْ وَجْهَكَ لِلدِّينِ حَنِيفًا ۚ فِطْرَتَ اللَّهِ الَّتِي فَطَرَ النَّاسَ عَلَيْهَا ۚ لَا تَبْدِيلَ لِخَلْقِ اللَّهِ ۚ ذَٰلِكَ الدِّينُ الْقَيِّمُ وَلَٰكِنَّ أَكْثَرَ النَّاسِ لَا يَعْلَمُونَ  

{فأقم} يا محمد {وجهك للدين حنيفا} مائلا إليه: أي أخلص دينك لله أنت ومن تبعك {فطرتَ الله} خلقته {التي فطر الناس عليها} وهي دينه أي: الزموها {لا تبديل لخلق الله} لدينه أي: لا تبدلوه بأن تشركوا {ذلك الدين القيّم} المستقيم توحيد الله {ولكن أكثر الناس} أي كفار مكة {لا يعلمون} توحيد الله.

See similar narrations below:

Collected by Muslim
muslim:2658dAbū al-Ṭāhir And ʾAḥmad b. ʿĪsá > Ibn Wahb > Yūnus b. Yazīd > Ibn Shihāb > Abū Salamah b. ʿAbd al-Raḥman > Abū Hurayrah

No child is born but upon Fitra. He then said. Recite: The nature made by Allah in which He created man, there is no altering of Allah's nature; that is the right religion."  

مسلم:٢٦٥٨dحَدَّثَنِي أَبُو الطَّاهِرِ وَأَحْمَدُ بْنُ عِيسَى قَالاَ حَدَّثَنَا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ بْنُ يَزِيِدَ عَنِ ابْنِ شِهَابٍ أَنَّ أَبَا سَلَمَةَ بْنَ عَبْدِ الرَّحْمَنِ أَخْبَرَهُ أَنَّ أَبَا هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ مَا مِنْ مَوْلُودٍ إِلاَّ يُولَدُ عَلَى الْفِطْرَةِ ثُمَّ يَقُولُ اقْرَءُوا { فِطْرَةَ اللَّهِ الَّتِي فَطَرَ النَّاسَ عَلَيْهَا لاَ تَبْدِيلَ لِخَلْقِ اللَّهِ ذَلِكَ الدِّينُ الْقَيِّمُ}