Surah Ali 'Imran 3:177
إِنَّ ٱلَّذِينَ ٱشْتَرَوُا۟ ٱلْكُفْرَ بِٱلْإِيمَـٰنِ لَن يَضُرُّوا۟ ٱللَّهَ شَيْـًٔا وَلَهُمْ عَذَابٌ أَلِيمٌ
Indeed, those who purchase disbelief [in exchange] for faith - never will they harm Allāh at all, and for them is a painful punishment.
Translation: Saheeh International
Tafsir
Those who purchase unbelief at the price of faith that is taking it in place of it they will not hurt God at all with their unbelief and there awaits them a painful chastisement alīm means mu’lim ‘painful’.
Excerpt from Tafsir al-Jalalayn, commentary on 3:177, via Quran.com. The reader has the full commentary and 9 more tafsirs.