وَلَقَدْ هَمَّتْ بِهِۦ ۖ وَهَمَّ بِهَا لَوْلَآ أَن رَّءَا بُرْهَـٰنَ رَبِّهِۦ ۚ كَذَٰلِكَ لِنَصْرِفَ عَنْهُ ٱلسُّوٓءَ وَٱلْفَحْشَآءَ ۚ إِنَّهُۥ مِنْ عِبَادِنَا ٱلْمُخْلَصِينَ
Wa laqad hammat bihee wa hamma bihaa law laaa ar ra-aa burhaana rabbih;; kazaalika linasrifa 'anhu sooo'a walfa hshaaa'; innahoo min 'ibaadi nal mukhlaseen
She made for him, and he would have succumbed to her if he had not seen evidence of his Lord- We did this in order to keep evil and indecency away from him, for he was truly one of Our chosen servants.
She was set on him, and he would have been set on her had he not seen the clear sign of his Lord. So it was, that we might turn evil and indecency away from him. He was truly one of our sincere servants.