Quran 35:8 from Surah Faatir on Divine Marvels.
أَفَمَن زُيِّنَ لَهُۥ سُوٓءُ عَمَلِهِۦ فَرَءَاهُ حَسَنٗاۖ فَإِنَّ ٱللَّهَ يُضِلُّ مَن يَشَآءُ وَيَهۡدِي مَن يَشَآءُۖ فَلَا تَذۡهَبۡ نَفۡسُكَ عَلَيۡهِمۡ حَسَرَٰتٍۚ إِنَّ ٱللَّهَ عَلِيمُۢ بِمَا يَصۡنَعُونَ
English translation: Then is (he) who is made fair-seeming to him (the) evil (of) his deed so that he sees it (as) good For indeed Allah lets go astray whom He wills and guides whom He wills So (let) not go out your soul for them (in) regrets Indeed Allah (is) All-Knower of what they do
Transliteration: afaman zuyyina lahu suu amalihi faraahu hasanan fa-inna al-laha yudillu man yashau wayahdi man yashau fala tadhhab nafsuka alayhim hasaratin inna al-laha alimun bima yasna'una