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

Those are the ones who have purchased error ˹in exchange˺ for guidance, so their transaction has brought no profit, nor were they guided.  

Those are they who have bought error for guidance, that is, they have exchanged the latter for the former; so their commerce has not profited them, that is to say, they have gained nothing from it, indeed, they have lost, because their destination is the Fire, made everlasting for them; nor are they guided, in what they did.
القرآن:٢:١٦

أُولَٰئِكَ الَّذِينَ اشْتَرَوُا الضَّلَالَةَ بِالْهُدَىٰ فَمَا رَبِحَتْ تِجَارَتُهُمْ وَمَا كَانُوا مُهْتَدِينَ  

{أولئك الذين اشتروا الضلالة بالهدى} أي استبدلوها به {فما ربحت تجارتهم} أي ما ربحوا فيها بل خسروا لمصيرهم إلي النار المؤبدة عليهم {وما كانوا مهتدين} فيما فعلوا.