When she heard of their sly talk, she sent for them (an invite) and prepared for them places to sit down face to face. She gave each of them a knife (to peel the fruits) and said (to Joseph): “Come forth to them!” So when they saw him, they admired him and cut their hands. And they said: “Allah, preserve us! This is not a human; this is but a noble angel.”
(She) said: “This is he whom you did blame me! Certainly I sought his yielding himself (wanted to take advantage of his soul). But he abstained firmly. And if he does not do what I order him, he shall certainly be cast into prison and be of the most humiliated ones.”
(He) said: “My Lord! Prison is dearer to me than that to which they invite me. Unless you turn away their plot from me, I will feel inclined towards them and become of the ignorant.”
Then his Lord answered him. So turned away from him their plot. Verily, He is the All-Hearing, the All-Knowing.
Later it seemed suitable for them after they had seen the evidences that it was best to imprison him till a time.
And two young men also entered the prison with him. One of them said: “I see myself (in a dream) pressing grapes.” And the other (also) said: “I see myself carrying bread on my head, of which the birds were eating. Inform us of its interpretation. Surely we see you to be of the doers of good (Muhsinîn).
Joseph said: "You will not receive food that is provided to you except that I will inform you of its interpretation before it comes to you. These two are what my Lord has taught me. Surely I have forsaken the religion of a people who do not believe in Allah, and they deny their hereafter (having their spirits reach Allah before death).”