Note the one whose evil work is adorned in his eyes, until he thinks that it is righteous. God thus sends astray whoever wills (to go astray), and He guides whoever wills (to be guided). Therefore, do not grieve over them. God is fully aware of everything they do.
أَفَمَن زُيِّنَ لَهُ سوءُ عَمَلِهِ فَرَءاهُ حَسَنًا فَإِنَّ اللَّهَ يُضِلُّ مَن يَشاءُ وَيَهدى مَن يَشاءُ فَلا تَذهَب نَفسُكَ عَلَيهِم حَسَرٰتٍ إِنَّ اللَّهَ عَليمٌ بِما يَصنَعونَ
afaman zuyyina lahoo sooo’u ‘amalihee fara aahu hasanaa; fa innal laaha yudillu mai yashaaa’u wa yahdee mai yashaaa’u falaa tazhab nafsuka ‘alaihim hasaraat; innal laaha ‘aleemun bimaa yasna’oon