أَفَمَن زُيِّنَ لَهُۥ سُوٓءُ عَمَلِهِۦ فَرَءَاهُ حَسَنٗاۖ فَإِنَّ ٱللَّهَ يُضِلُّ مَن يَشَآءُ وَيَهۡدِي مَن يَشَآءُۖ فَلَا تَذۡهَبۡ نَفۡسُكَ عَلَيۡهِمۡ حَسَرَٰتٍۚ إِنَّ ٱللَّهَ عَلِيمُۢ بِمَا يَصۡنَعُونَ ٨
Afaman zuyyina lahū sūʾu ʿamalihī faraʾāhu ḥasanā, fa innallāha yuḍillu may yashāʾu wa yahdī may yashāʾ, falā tadhhab nafsuka ʿalayhim ḥasarāt, innallāha ʿalīmum bimā yaṣnaʿūn.
Then is one to whom the evil of his deed has been made attractive so he considers it good [like one rightly guided]? For indeed, Allāh sends astray whom He wills and guides whom He wills. So do not let yourself perish over them in regret. Indeed, Allāh is Knowing of what they do.
Translation: Sahih International