(What is the recompense (punishment) for him who intended an evil design against your wife...), in reference to illegal sexual intercourse,
إِلاَ أَن يُسْجَنَ
(except that he be put in prison)
أَوْ عَذَابٌ أَلِيمٌ
(or a painful torment) tormented severely with painful beating. Yusuf did not stand idle, but he declared the truth and exonerated himself from the betrayal she accused him of,
قَالَ
(He Yusuf said), in truth and honesty,
هِىَ رَاوَدَتْنِى عَن نَّفْسِى
(It was she that sought to seduce me), and mentioned that she pursued him and pulled him towards her until she tore his shirt.
Sayyidna Yusuf (علیہ السلام) ، because of his prophetic gentleness, may not have, perhaps, disclosed her secret. But, when she took the first step and presented a charge sheet of false accusation against him, he was compelled to tell the truth: هِيَ رَاوَدَتْنِي عَن نَّفْسِي (It was she who sought to seduce me).
The matter was dense and delicate. For the ` Aziz of Misr, it was difficult to decide as to who should be taken as being true. That was no occasion for evidence and proof. But, Allah, great is whose majesty, has His own ways of saving His honourable servants from sin and keeping them unaffected and protected from it. He would do the same for them during their worldly life when He would arrange to save them from being disgraced, even if it would take a miracle to do that. Usually, on such occasions, infant children have been chosen to unfold truth, infants who are not expected to talk customarily. But, by giving them power of speech miraculously, Allah Ta’ ala would arrange for the acquittal of His favoured servants from accusations levelled against them. This happened when people started accusing Sayyidah Maryam falsely. Allah Tad gave a day old infant, Sayyidna ` Isa (علیہ السلام) ، the ability to speak and it was through his tongue that He had the sanctity of his blessed mother manifested - a very special manifestation of His power indeed. Similarly, when another accusation of this nature was made under the umbrella of a major conspiracy against Jurayj, a pious elder among the Bani Israil, it was a new-born child who testified to his innocence. When Pharaoh got suspicious about Sayyidna Musa (علیہ السلام) ، the small daughter of the personal lady hair-styler of the wife of the Pharaoh was given the power of speech and it was she who saved Sayyidna Musa (علیہ السلام) during his childhood from being hurt by the Pharaoh.
Zulaykha, the wife of the nobleman, was charmed by the beauty of Joseph. She constantly tried to seduce him and one day, finding the opportunity, she closed the door of the room. This was a very critical occasion for an unmarried youth, but Joseph had preserved his godly nature and this nature came to his rescue on this occasion. The capacity to distinguish between truth and untruth, right and wrong, is ingrained in every human being by birth and this serves as a warning on all such occasions. To ignore it amounts to ignoring the voice of God. One who does so is deprived of God’s succour so that his moral strength gradually ebbs away. On the contrary, one who immediately bows down before the divine call, as soon as it is given, can count on God’s help; this improves his moral fibre and on future occasions he becomes stronger in the face of evil. What prevented Joseph from indulging in evil was in fact the fear of God but, at that time, invoking God before Zulaykha would have been ineffective. This was not an occasion for a declaration of Truth but an occasion when he had to save himself in a critical situation. In view of this situation he referred to Zulaykha’s husband. He said that ‘her husband was his master and he had maintained him in his house with due honour. Therefore, it was not possible for him to besmirch the honour of his benefactor.’
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.