قَالَ رَبِّ السِّجْنُ أَحَبُّ إِلَيَّ مِمَّا يَدْعُونَنِي إِلَيْهِ ۖ وَإِلَّا تَصْرِفْ عَنِّي كَيْدَهُنَّ أَصْبُ إِلَيْهِنَّ وَأَكُن مِّنَ الْجَاهِلِينَ (33)
(12:33) Joseph said, "My Lord! I prefer imprisonment to that to which they invite me. If Thou dost not ward off their cunning devices from me, I may be caught in their snare, and become one of the ignorant. " *28
*28) In order to grasp the full significance of this prayer of Prophet Joseph, we should try to form a mental picture of the circumstances in which he was placed at that time. In the light of this passage the picture will be something like this. "There is the handsome young man of twenty in the prime of his life, who has brought health and vigour of youth from the desert into Egypt, after passing through the ordeal of forced slavery and exile. Fortune has placed him in the house of one of the highest dignitaries in the capital of the most civilized country of the world at the time. There this handsome young man meets in the prime of life with a strange experience. The lady of the house in which he has to live day and night falls passionately in love with him and begins to tempt and seduce him.Then the fame of his beauty spreads all over the capital and the other ladies of the town also become enamoured of him. Now this is the critical position. He is surrounded on all sides by hundreds of beautiful snares that have been spread to entrap and catch him unawares. All sorts of devices are employed to excite his passions and entice him: wherever he goes he encounters sin lying in ambush with all its charms and allurements and waiting for an opportune moment to make a surprise attack upon him. Such are the circumstances that are tempting him with sin, but the pious young man successfully passes through the ordeal, set for him by Satan, with the self-control that is praiseworthy indeed. But it is all the more praiseworthy that he does not feel any pride for showing such extraordinary piety in such trying and tempting circumstances. On the other hand, he very humbly invokes his Lord to protect him from those traps of sin, for he is afraid of the common human weaknesses and cries out, "My Lord, I am weak ! I fear lest these temptations should over-power me, I would rather prefer imprisonment to doing such an evil thing into which they are tempting to ensnare me. "
In fact, that was the most important and critical period of Prophet Joseph's training, and this hard ordeal helped to bring forth all his latent virtues of which he himself was unaware up to that time. Then he himself realized that Allah had endowed him with the high and extraordinary qualities of honesty, fidelity, piety, charity, righteousness, self-control, balance of mind, and he made full use of these when he gained power in Egypt.