Therefore...
Therefore, he lost no time in contacting the women who had taken part in the affair. He had them brought before him and asked them about what happened when they had made their passes at Yusuf.
The verse says: “He (the king) said (to the women): ‘What was the matter with you women when you sought to seduce Yusuf from his (pure) self?’...” Their dormant consciences were aroused and all of a sudden, because of the provocative question, they unanimously declared that Yusuf had not been guilty and testified to his chastity and flawless personality. The verse says: “…They answered: ‘Allah Blameless!
We know no evil of him.’...” The wife of the ‘Aziz, who was attending there, felt the time ripe for her to confess her wrongdoing and reconcile her guilty conscience after several years.
She then bore testimony to Yusuf’s chastity and confessed her guilt especially when she became aware of his greatness and magnitude which, as a result of his message to the king was becoming well known and he had mentioned nothing about her in his message except something secretly pointing to those women of Egypt.
Suddenly, as if a burst occurred in her inside, she exclaimed such the Qur’an says: “…The wife of the ‘Aziz said: ‘Now the truth has become manifest, I (it was who) sought to seduce him from his (pure) self, and verily he is of the truthful ones’.” Explanations Whenever there is a knotty and complicated problem, the person in charge should study the evidence himself and proceed to set up the mechanism to see that justice is done. Accused persons should be invited to defend themselves.
In the story even Zulaykha was present when the investigation was taking place. Truth would not always remain hidden, guilty consciences will be aroused one day and they will of necessity, confess. Social pressure and the environmental influences can drive even the stiff-necked to confess. As soon as the wife of the ‘Aziz was convinced that all the women had testified to Yusuf’s innocence, she also accepted to confess.