Sure Aal-i-Imraan

3:177

إِنَّ ٱلَّذِينَ ٱشْتَرَوُا۟ ٱلْكُفْرَ بِٱلْإِيمَٰنِ لَن يَضُرُّوا۟ ٱللَّهَ شَيْـًۭٔا وَلَهُمْ عَذَابٌ أَلِيمٌۭ

Diejenigen, die den Unglauben für den Glauben erkauft haben, werden Allah keinerlei Schaden zufügen, und für sie wird es schmerzhafte Strafe geben.

Tafsir 3:177

Those who exchange faith for disbelief will not harm Allah in any way: He is the Mighty and free from any need of His creation. They only harm themselves, and they will have a painful punishment in the Afterlife.