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:257

Allah is the ally of those who believe. He brings them out from darknesses into the light. And those who disbelieve - their allies are Taghut. They take them out of the light into darknesses. Those are the companions of the Fire; they will abide eternally therein.  

God is the Protector, helper, of the believers; He brings them forth from the shadows, of unbelief, into the light, of faith. And the disbelievers — their protectors are false deities, that bring them forth from the light into the shadows: the repetition of ‘bringing forth from’ here is either to be taken as a reflection of His ˹previous˺ words, “He brings them forth from the shadows”, or as a reference to all those Jews who believed in the Prophet before he was sent, but then rejected him, those are the inhabitants of the Fire, therein they shall abide.
القرآن:٢:٢٥٧

اللَّهُ وَلِيُّ الَّذِينَ آمَنُوا يُخْرِجُهُمْ مِنَ الظُّلُمَاتِ إِلَى النُّورِ ۖ وَالَّذِينَ كَفَرُوا أَوْلِيَاؤُهُمُ الطَّاغُوتُ يُخْرِجُونَهُمْ مِنَ النُّورِ إِلَى الظُّلُمَاتِ ۗ أُولَٰئِكَ أَصْحَابُ النَّارِ ۖ هُمْ فِيهَا خَالِدُونَ  

{الله ولي} ناصر {الذين آمنوا يخرجهم من الظلمات} الكفر {إلى النور} الإيمان {والذين كفروا أولياؤهم الطاغوت يخرجونهم من النور إلى الظلمات} ذكر الإخراج إما في مقابلة قوله يخرجهم من الظلمات أو في كل من آمن بالنبي قبل بعثته من اليهود ثم كفر به {أولئك أصحاب النار هم فيها خالدون}.