The wife of al-'Aziz tried to seduce him. He refused and chose prison over sin. In prison he called his companions to Allah.
Qur'an: She closed the doors and said: 'Come.' He said: 'I seek refuge in Allah' (12:23). His shirt, torn from behind, proved his innocence (12:26–28).
Qur'an: When the women of the city blamed her, she showed them Yusuf, and they cut their hands in amazement (12:31). He said: 'My Lord, prison is dearer to me than what they invite me to' (12:33).
Qur'an: In prison, two young men asked him to interpret their dreams. First he called them to tawhid: 'Are separate lords better, or Allah, the One, the Prevailing?' (12:39).