The king was greatly astonished. Who could this person be? He commanded that Joseph to be set free from prison and presented to him at once. The king's envoy went to fetch him immediately, but Joseph refused to leave the prison unless his innocence was proven. Perhaps they accused him of cutting the ladies' hands, or of trying to rape them. Perhaps any other false accusation was made.
We do not know exactly what was said to the people to justify Joseph's sentence to prison. The envoy returned to the king. The kings asked him: "Where is Joseph? Did I not command you to fetch him?"
The envoy replied: "He refused to leave until his innocence is established regarding the ladies who cut their hands."
The king ordered: "Bring the wives of the ministers and the wife of the chief minister at once." The king felt that Joseph had been harmed unfairly but he did not know exactly how.
The wife of the chief minister came with the other ministers' wives. The king asked: "What is the story of Joseph? What do you know about him? Is it true that...?" .
One of the ladies interrupted the king exclaiming: "Allah forbid!"
A second said: "We know of no evil he has done."
A third said: "He enjoys the innocence of angels."
The eyes of everyone turned to the wife of the chief minister. She now wore a wrinkled face and had lost weight. She had been overwhelmed by sorrow over Joseph while he was in prison. She boldly confessed that she had lied and he had told the truth. "I tempted him; but he refused." She confirmed what she said, not out of fear of the king or the other ladies, but for Joseph to know that she had never betrayed him during his absence, for he was still in her mind and soul. Of all creation he was the only one she cared for, so she confirmed his innocence before all.
Joseph's Innocence Proved - Qur'anic
Almighty Allah said: And the king said: "Bring him to me. But when the messenger came to him (Joseph) said: "Return to your lord and ask him, 'What happened to the women who cut their hands? Surely, my Lord (Allah) is WellAware of their plot.
(The king) said (to the women): 'What was your affair when you did seek to seduce Joseph?" The women said: 'Allah forbid! No evil know we against him!" The wife of Al- 'Aziz said: "Now the truth is manifest (to all), it was I who sought to seduce him, and he is surely of the truthful."
(Then Joseph said. "I asked for this enquiry) in order that he (Al- 'Aziz) may know that I betrayed him not in secret. And, verily! Allah guides not the plot of the betrayers. And I free not myself (from the blame). Verily, the (human) self is inclined to evil, except when my Lord bestows His Mercy (upon whom He wills). Verily, my Lord is Oft-Forgiving, Most Merciful." Surah 12: 50-53