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:6:161

Say, "Indeed, my Lord has guided me to a straight path - a correct religion - the way of Abraham, inclining toward truth. And he was not among those who associated others with Allah."  

Say: ‘As for me, my Lord has guided me to a straight path (ilā sirātin mustaqīm is substituted by ˹the following, dīnan qiyaman˺) a right religion, an upright ˹one˺, the creed of Abraham, a hanīf; and he was not of the idolaters’.
القرآن:٦:١٦١

قُلْ إِنَّنِي هَدَانِي رَبِّي إِلَىٰ صِرَاطٍ مُسْتَقِيمٍ دِينًا قِيَمًا مِلَّةَ إِبْرَاهِيمَ حَنِيفًا ۚ وَمَا كَانَ مِنَ الْمُشْرِكِينَ  

{قل إنني هداني ربي إلى صراط مستقيم} ويبدل من محله {دينا قيما} مستقيما {ملة إبراهيم حنيفا وما كان من المشركين}.

See similar narrations below:

Collected by Qurʾān
quran:2:135

They say, "Be Jews or Christians ˹so˺ you will be guided." Say, "Rather, ˹we follow˺ the religion of Abraham, inclining toward truth, and he was not of the polytheists."  

And they say, ‘Be Jews or Christians (the particle aw is for detail; the first of these is the saying of the Medinan Jews, while the second is that of the Christians of Najrān), and you shall be guided’. Say, to them: ‘Nay, we follow, rather the creed of Abraham, a hanīf (hanīfan is a circumstantial qualifier referring to Ibrāhīma, that is to say, one that inclines away from all other religions to the upright religion); and he was not of the idolaters’.
القرآن:٢:١٣٥

وَقَالُوا كُونُوا هُودًا أَوْ نَصَارَىٰ تَهْتَدُوا ۗ قُلْ بَلْ مِلَّةَ إِبْرَاهِيمَ حَنِيفًا ۖ وَمَا كَانَ مِنَ الْمُشْرِكِينَ  

{وقالوا كونوا هودا أو نصارى تهتدوا} أو للتفضيل وقائل الأول يهود المدينة والثاني نصارى نجران {قل} لهم {بل} نتبع {ملة إبراهيم حنيفا} حال من إبراهيم مائلا عن الأديان كلها إلى الدين القيّم {وما كان من المشركين}.