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:2:140

Or do you say that Abraham and Ishmael and Isaac and Jacob and the Descendants were Jews or Christians? Say, "Are you more knowing or is Allah?" And who is more unjust than one who conceals a testimony he has from Allah? And Allah is not unaware of what you do.  

Or, nay, do you say (taqūlūna, also read yaqūlūna, ‘do they say?’): ‘Abraham, Ishmael, Isaac and Jacob, and the Tribes — they were Jews, or they were Christians?’ Say, to them: ‘Have you then greater knowledge, or has God?, that is, God has greater knowledge; He dissociated Abraham from both ˹groups˺, when He said, Abraham was not a Jew, nor a Christian ˹Q. 3:67˺; and those mentioned with him ˹Abraham˺ are his followers ˹in not belonging to either group˺. And who does greater injustice than he who conceals, hides from people, a testimony, he has, received from God?, that is, there is none more unjust than him: these are the Jews, for they concealed God’s testimony about Abraham’s pure faith in the Torah; And God is not heedless of what you do’: ˹this is˺ a threat for them.
القرآن:٢:١٤٠

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

{أم} بل {تقولون} بالتاء والياء {إنَّ إبراهيم وإسماعيل وإسحاق ويعقوب والأسباط كانوا هودا أو نصارى قل} لهم {أأنتم أعلم أم الله} أي الله أعلم وقد برأ منهما إبراهيم بقوله (ما كان إبراهيم يهوديا ولا نصرانيا) والمذكورون معه تبع له {ومن أظم ممن كتم} أخفى عن الناس {شهادة عنده} كائنة {من الله} أي لا أحد أظلم منه وهم اليهود كتموا شهادة الله في التوراة إبراهيم بالحنيفية {وما الله بغافل عما تعملون} تهديد لهم.