وَلَقَدْ ہَمَّتْ بِہٖ۰ۚ وَہَمَّ بِہَا لَوْلَاۗ اَنْ رَّاٰ بُرْہَانَ رَبِّہٖ۰ۭ كَذٰلِكَ لِنَصْرِفَ عَنْہُ السُّوْۗءَ وَالْفَحْشَاۗءَ۰ۭ اِنَّہٗ مِنْ عِبَادِنَا الْمُخْلَصِيْنَ۲۴
Walaqad hammat bihi wahamma biha lawla an raa burhana rabbihi kathalika linasrifa AAanhu alssooa waalfahshaa innahu min AAibadina almukhlaseena
But the woman desired him, and he would have desired her but for the indication he received from his Lord. This was so that We may avert both evil and lechery from him, for he was one of Our chosen devotees.