[Yusuf 12:31] And when she heard of their secret talk, she sent for them and prepared cushioned mattresses for them and gave a knife to each one of them and said to Yusuf, "Come out before them!" When the women saw him they praised him and cut their hands, and said, "Purity is to Allah - this is no human being; this is not but an honourable angel!"
[Yusuf 12:32] She said, "This is he on whose account you used to insult me; and indeed I tried to entice him, so he safeguarded himself; and indeed if he does not do what I tell him to, he will surely be imprisoned, and will surely be humiliated."
[Yusuf 12:33] He said, "O my Lord! Prison is dearer to me than the deed they invite me to; and if You do not repel their deceit away from me, I may incline towards them and be unwise."
[Yusuf 12:34] So his Lord heard his prayer and repelled the women’s deceit away from him; indeed He only is the All Hearing, the All Knowing.
[Yusuf 12:35] Then after having seeing all the signs, they all decided that he should be imprisoned for some time.
[Yusuf 12:36] And two young men went to prison along with him; one of them said, "I dreamt that I am pressing wine"; the other said, "I dreamt that I am carrying some bread upon my head from which birds were eating"; "Tell us their interpretation; indeed we see that you are virtuous."
[Yusuf 12:37] Said Yusuf, "The food which you get will
not reach you, but I will tell you the interpretation of this before it
comes to you; this is one of the sciences my Lord has taught me; indeed
I did not accept the religion of the people who do not believe in Allah
and are deniers of the Hereafter."