Ayat 22. And when he [Yusuf (Joseph)] attained his full manhood, We gave him wisdom and knowledge (the Prophethood), thus We reward the Muhsinun (doers of good).
Ayat 23. And she, in whose house he was, sought to seduce him (to do an evil act), she closed the doors and said: “Come on, O you.” He said: “I seek refuge in Allah (or Allah forbid)! Truly, he (your husband) is my master! He made my stay agreeable! (So I will never betray him). Verily, the Zalimun (wrong and evil-doers) will never be successful.”