The Holy Quran 12:24 — Surah Yusuf
Arabic text
وَلَقَدْ هَمَّتْ بِهِۦ ۖ وَهَمَّ بِهَا لَوْلَآ أَن رَّءَا بُرْهَـٰنَ رَبِّهِۦ ۚ كَذَٰلِكَ لِنَصْرِفَ عَنْهُ ٱلسُّوٓءَ وَٱلْفَحْشَآءَ ۚ إِنَّهُۥ مِنْ عِبَادِنَا ٱلْمُخْلَصِينَ
Translation
She was determined to achieve her objectives from him, and he also would have intended the same had he not seen the proof of his Rabb (had he not been a Nabi). In this manner (Our fate had decreed the matter) so that We averted evil and immorality from him. Indeed he was from Our sincere bondsmen (the Ambiyaa).
Tafsir (excerpt) — Tafsir Usmani
The difference between the inclination (“hamm”) of Zulaykha and of Yusuf ﵇: that is, the woman thought of how to ensnare [him], and he thought of how to keep the woman's ploy from succeeding; had he not beheld the proof and power of his Lord, it would have been difficult to stand firm. Some mufassirun (commentators)
Preview. The full text opens with JavaScript enabled.