Surah Yusuf, ayah 23 (12:23)
Surah Yusuf · Makki · ayah 23 of 111 · in Yusuf in the house in Egypt
Ponder Yusuf 12:23 in the app →وَرَٰوَدَتْهُ ٱلَّتِى هُوَ فِى بَيْتِهَا عَن نَّفْسِهِۦ وَغَلَّقَتِ ٱلْأَبْوَٰبَ وَقَالَتْ هَيْتَ لَكَ ۚ قَالَ مَعَاذَ ٱللَّهِ ۖ إِنَّهُۥ رَبِّىٓ أَحْسَنَ مَثْوَاىَ ۖ إِنَّهُۥ لَا يُفْلِحُ ٱلظَّـٰلِمُونَ
“And she, in whose house he was, sought to seduce him. She closed the doors and said, "Come, you." He said, "[I seek] the refuge of Allāh. Indeed, he is my master, who has made good my residence. Indeed, wrongdoers will not succeed."”
Saheeh International
What does Surah Yusuf 12:23 mean?
Behind bolted doors, called by the woman of the house, Yusuf answers with refuge in Allah, loyalty to his master, and the end of wrongdoers.
Reflections
Every door shut but one
She shut the doors. The verb is ghallaqat, a stronger form than simply closing. The lexicons read it as many doors shut, or one door shut again and again, or a door bolted fast. Its root is one thing caught fast in another, like a bolt shot home.
Then she called him. His answer begins with two words: maʿādha llāh, refuge in Allah. Not 'I can't'. Not 'what if we are caught'. Refuge.
The root of that word has a tender first picture. The Arabs called a camel or gazelle that had just given birth ʿāʾidh, for about seven days, because her young clung to her side. The plant that grows at the foot of a rock, sheltered from the wind, comes from the same root. Refuge is the small one pressed against the larger one, holding on while the cold goes past.
That is what Yusuf does in a room where every exit has been shut. He does not look for a door first. He presses himself against his Lord.
The commentaries gloss it simply: I seek refuge in Allah from that. One commentator reads more in it. Yusuf is asking Allah to strengthen the pull towards obedience in him and to take away the pull towards sin. Later he says it plainly: unless You turn their scheming away from me, I will incline towards them (12:33). The strongest man in the story knew he was not strong enough alone.
A locked door is the oldest picture of being trapped. But nobody can bolt the way to Allah. It opens from the heart, and it is never locked from His side.
Hold that picture: the newborn pressed to its mother's side, with the doors bolted all around.
The scout who keeps coming back
The ayah's first verb is rāwadathu. Its root is a scout, the rāʾid, sent ahead of a tribe to search for grass and water. He comes and goes, testing the ground, and returns. The same root gives ruwayd: softly, slowly.
So this was not one wild moment. The commentaries describe her asking gently and softly, and one adds: with stratagem. The form of the verb is a contest between two. She sought the deed; he sought to leave it. The phrase 'ʿan nafsihi' sharpens it. One commentator explains that she did what a swindler does to a man over something he will not let go of. She was trying to coax him out of himself.
The ayah describes her only as 'the one in whose house he was'. One commentator notes that this choice explains the strength of the pull. It was her house. He lived there and ate there, under her authority.
Temptation mostly works like that. It scouts before it shouts. A woman leaves a coat in an online basket and closes the tab. The next day comes a message: still thinking it over? Then a small discount. Then: only two left in your size. Nobody raised their voice. Someone just kept coming back.
In this house the stakes were far higher, and the coming and going behind this moment is left untold. The ayah shows us the day it stopped being gentle: the doors shut.
The reader's lesson is to notice the scout, not only the final call. Most falls are not one leap. They are many small returns, each let in a little further.
Three walls in one answer
Yusuf's reply is short, and it has three parts. Each faces a different direction.
The first faces Allah: refuge in Allah. The second faces the household: he is my master, he made my lodging good. The third faces the self and where it ends: wrongdoers do not flourish.
The second part needs care. Most commentators read 'my master' as the man of Egypt, who had ordered the boy's lodging made generous. One paraphrases Yusuf: what kind of repayment would it be to betray him in his own family? A minority read 'my lord' as Allah, who arranged every kindness. The Arabic holds both, and both are true.
One commentator also asks a hard question. Yusuf was a free man, sold unlawfully. Was it untrue to call the man his master? He answers that Yusuf spoke as things outwardly stood. And rabb also carries the sense of the one who brought him up and cared for him. That was simply true.
The third part defines wrongdoing in an unexpected way. Several commentators say the wrongdoers here are those who repay good with evil. Betraying a benefactor is its own kind of ẓulm. The verb for flourishing, yufliḥu, comes from the ploughman splitting hard ground so that seed can take root. Falāḥ is a harvest that lasts. Wrongdoing can be planted, but it does not yield.
So his refusal was not a single wall. It was three: his Lord, his trust and his own end. Temptation usually argues against one of them at a time. It rarely survives all three at once. So build all three walls in daylight, long before any door is shut.
Every pressure in one room
The Prophet ﷺ named seven whom Allah will shade on the Day when there is no shade but His. One is a man called by a woman of rank and beauty, who says: I fear Allah. Al-Bukhari and Muslim both report it. Read beside this ayah, it is almost a portrait.
A later scholar counted the pressures on Yusuf in that room, some drawn from the ayat that follow. He found thirteen. Yusuf was young, when desire is strongest. He was unmarried. He was a stranger far from his people, where no one who knew him would hear. She had rank and beauty. She was the one asking, so he was spared the humiliation of asking. He lived in her house, under her power, and refusing her carried danger. She had shut the doors, so there was no fear of exposure. And they had lived side by side, which breeds an easy closeness.
His point is not that Yusuf felt nothing. It is the opposite. Every force that makes this sin likely was present at once, and he still chose Allah. The same scholar adds that Yusuf knew he could not turn it away by himself. So he asked his Lord to do it.
That honesty matters for the reader. Some people imagine that the righteous are simply not tempted. Then, when they feel the pull themselves, they decide they must be hypocrites. This ayah says otherwise. The pull can be real and strong. The servant's work is to run to refuge, not to pretend he feels no wind.
A story told without her name
Across the whole surah, the Qur'an never gives this woman a name. Here she is not even given her title. She is 'the one in whose house he was'. Later she is 'the wife of the ʿAziz' (12:30). The names many readers know come from later reports. One commentator observes that none of them has a sound chain, and the meaning does not depend on them.
Another commentator explains the silence here. Her title is withheld to keep her covered as far as possible. The Qur'an tells the worst hour of her life and keeps even her title out of it. Nor is she left there. Later she will stand up and say: I sought to seduce him, and he is truthful (12:51).
Popular poetry has turned the pair into a romance, with her as a lovelorn heroine. The Qur'an tells something else. It is the story of a servant tested in a house where he had no power, and of a woman who later admits the truth. Not a love story; a trust kept.
Set this beside how we tell each other's worst moments. A teenager screenshots a classmate's private message and posts it to a group of three hundred, name and photo included. By lunch the whole year knows.
Why tell such an intimate scene at all? Because the test is common and the way out is rare. The Qur'an gives the scene enough detail to teach, and not one word to feed curiosity. That is the line for us too, when we speak of others' failings. Say what heals or warns, and nothing that only exposes.
A call that says 'for you'
Her words are hayta laka. The lexicons describe hayta as a shout across open ground, a call that pulls someone in. It means simply: come. Then comes laka: for you, to you. One short commentary says this lām is there to make plain whom the call is for.
Temptation always addresses you personally. It arrives with your name on it.
Late at night, alone in a room with the door shut, a young man opens an app. Its main page is called, quite literally, 'For You'. Nobody locked the door on him; he shut it himself. Every swipe is a soft call: come, this is for you.
Yusuf's reply did not argue with the call. He did not explain why the offer was poor, or bargain over how far he would go. Arguing keeps you in the room, weighing the offer. Refuge takes you out of it. He turned to Someone: maʿādha llāh.
That is a practical answer as well as a spiritual one. Say the words aloud: aʿūdhu billāh. Then do the bodily thing that matches them. Put the phone face down in another room. Open the door. Go where there are people, or to the water for wuḍūʾ.
Remember the picture in the root. A newborn does not fight the wind. It presses closer to its mother's side and lets her take the cold. When the call comes with your name on it, do the same. Press closer to your Lord, and let Him take the weight.
A common misreading
Often heard: This is the love story of Yusuf and Zulaykha.
Closer to the ayah: The Qur'an never names her, and here withholds even her title to keep her covered. It tells the test of a servant in a house where he had no power, and a woman who later admits the truth.
Often heard: Yusuf resisted because, as a prophet, he felt no pull.
Closer to the ayah: Every pressure was present at once, and his first word is a plea for refuge. Later he says that unless Allah turns the scheming away, he will incline to it (12:33).
Words to know
وَرَٰوَدَتْهُ wa rāwadathu · the root r-w-d
She sought to win him over: asking gently and repeatedly. The form signals a contest, she seeking the deed and he seeking to leave it. With 'ʿan nafsihi' it means trying to draw a person away from himself.
هَيْتَ hayta
Come. A call recorded as a word that reached Makkah from Hawran. An early report says it is close in meaning to saying 'come here' or 'come'.
مَعَاذَ maʿādha · the root ʿ-w-dh
Refuge: 'I seek refuge in Allah.' It is not a refusal made on his own strength. It is a running to Allah from what he was called to.
Questions to sit with
- Which temptation in your life scouts rather than shouts?
- Of the three walls in Yusuf's answer, which is weakest in you?
- How do you speak about other people's worst moments?
Live it today
Learn maʿādha llāh as an action, not only a phrase. The next time a call comes with your name on it, say aʿūdhu billāh aloud, then get up and leave the room.
Echoes in the Quran
- Surah Ad-Dukhan 44:20Musa, cornered by threats, reaches for the same word of refuge that Yusuf spoke behind locked doors.
- Surah Al-Falaq 113:1Al-Falaq teaches every reader the move Yusuf made at the bolted door: name the One first, and run to Him.
- Surah Yusuf 12:33Refuge in Allah here; later he says it plainly: unless You turn their scheming from me, I will lean towards them.
Come back to this ayah when you feel...
when you are tempted to gossip · when temptation is within reach · when someone has power over you · when no one will ever check · when pressured to compromise your values
The classical tafsir of this ayah
Tafsir al-Jalalayn · Tafsir Ibn Kathir (abridged) · Tafsir al-Tabari (abridged) · Tafsir al-Qurtubi (abridged) · Tafsir al-Sa'di · Tafsir al-Razi (abridged)
Read the whole surah
Every hidden thing, brought to light: a reflection on all of Surah Yusuf, from its first ayah to its last.
Ponder Yusuf 12:23 in the app →In the app: the Mushaf, every word with its root, side-by-side tafsir, and your own private reflections. Free, no account, works offline.