Quran PonderAll surahsOpen in the app

Surah Yusuf, ayah 24 (12:24)

Surah Yusuf · Makki · ayah 24 of 111 · in Yusuf in the house in Egypt

Ponder Yusuf 12:24 in the app →

وَلَقَدْ هَمَّتْ بِهِۦ ۖ وَهَمَّ بِهَا لَوْلَآ أَن رَّءَا بُرْهَـٰنَ رَبِّهِۦ ۚ كَذَٰلِكَ لِنَصْرِفَ عَنْهُ ٱلسُّوٓءَ وَٱلْفَحْشَآءَ ۚ إِنَّهُۥ مِنْ عِبَادِنَا ٱلْمُخْلَصِينَ

“And she certainly determined [to seduce] him, and he would have inclined to her had he not seen the proof [i.e., sign] of his Lord. And thus [it was] that We should avert from him evil and immorality. Indeed, he was of Our chosen servants.”

Saheeh International

What does Surah Yusuf 12:24 mean?

She resolved on him, and his pull was stopped by his Lord's proof; Allah turned evil away from him, for he was among the purified.

Reflections

Molten, and never set

The same verb is used of both of them: hammat, and hamma. Its root has a vivid first picture. Hamma al-shaḥm is fat melting over a fire. Snow inhamma when it slackens into water. So hamm is an intention still molten, not yet set into a deed.

The ayah does not leave the two equal. One commentator points out that a reciter may pause after 'she resolved on him'. Then he begins afresh: 'and he would have inclined to her, had he not seen'. The pause itself marks the difference.

Scholars read his part in two main ways. In one, the condition governs the verb before it. He would have inclined, had he not seen the proof; he saw it, so he did not. A great commentator defends this reading at length, and cites a parallel at 28:10. In the other, the hamm was real but of a different kind from hers. A later scholar, quoting an early imam, puts it plainly. There are two kinds: a passing thought, and a persistent resolve. Hers was the second, pursued with all her effort. His was the first, and he left it for Allah.

Both readings agree on what matters. Whatever stirred, he did not act, and he did not keep returning to it. Nothing in him set. The fat warmed and ran, perhaps, and then the fire was taken away before anything hardened into a deed.

That is the held picture of this ayah: a pot over a fire, something melting in it. Keep it in view, because the ayah ends in the same kitchen.

A pull written as a good deed

The commentaries bring a hadith to this ayah, and it changes how the reader hears it. The Prophet ﷺ reported that Allah says: if My servant intends a bad deed and does not do it, write it as a good deed. In one wording Allah adds: for he left it for My sake. Al-Bukhari and Muslim both report it.

On the view that Yusuf felt a passing pull, then, what was written for him was not a sin. It was a good deed, because he left it for Allah.

One commentator gives a homely picture. A righteous man is fasting on a blazing summer day, and he sees a chilled drink. His nature reaches for it; his religion holds him back. That is no sin. In fact, he says, the stronger the pull, the more complete the servanthood that refuses it.

Another commentator makes the same point from the other side. If there had been no strong pull at all, there would be nothing to praise. Patience is honoured in proportion to the trial.

A man two years free of gambling walks home past a bookmaker's lit window. Some evenings the pull is strong enough to slow his step. He walks on. On the reckoning of this hadith, each of those evenings is written for him, not against him.

Many people carry shame for being drawn at all. They think the pull proves their faith is fake. This ayah, read with this hadith, says otherwise. Being drawn is not falling. Turning away for Allah is itself a deed He records. And it is recorded at the very moment no one else sees it: on the pavement, at the screen, behind a shut door.

Every witness, even the enemy

One commentator gathers every party to this event and asks what each one said. The surah itself answers.

Yusuf says it plainly at the door: she sought to seduce me (12:26). A witness from her own family proposes the test of the shirt (12:26). Her husband, seeing the shirt torn from behind, tells her: ask forgiveness for your sin (12:29). The woman tells the women of the city: I sought to seduce him, and he held himself fast (12:32). Years later the women say: Allah forbid, we know no evil of him. And she adds: I sought to seduce him, and he is truthful (12:51).

Then Allah's own testimony, in this ayah. The commentator counts four parts. We turned evil away from him. And indecency. He was one of Our servants. And of the purified.

The last witness is the strangest. Iblis, vowing to lead all people astray, made one exception: except Your purified servants among them (15:40, and again 38:83). The word is the same word used here of Yusuf: al-mukhlaṣīn. The enemy himself had already conceded that he could not take such a servant.

So the surah builds a courtroom where every voice agrees, friend and enemy alike. Rarely is a person's innocence spoken of so fully. And notice the order. The surah gives Allah's verdict here, before any human witness has spoken. The reader knows the truth before the household does. Every later scene is watched with that knowledge, so the slander that follows can never quite land.

For the reader, that has a practical edge. When you hear a lurid story about a righteous person, ask who the witnesses are. Here, every witness speaks, and every one clears him.

What the proof was, and what we must not add

What did Yusuf see? The commentaries preserve many reports. His father's face appeared to him, biting his finger. A hand appeared on the wall with an ayah written on it. He saw the likeness of his master. Some reports go much further, and picture him half undressed.

One great early commentator weighs these and refuses to choose. He saw one of Allah's signs that held him back, he says. It may have been any of these. But no decisive proof fixes which, so the right course is to leave it as Allah left it.

As for the lurid details, a later scholar, quoted in a note to one commentary, is blunt. Neither Allah nor His Messenger ﷺ told us any of this. Such tales were taken from Israelite storytellers, and no one relays a single letter of them from our Prophet ﷺ. Another commentator adds a sharp argument. When prophets slipped, the Qur'an names the slip and records their repentance, as with Adam and Yunus. Here there is no repentance recorded, only praise. So there was nothing to repent of.

The word burhān itself helps. The lexicons define it as decisive proof that ends an argument and yields certainty, not mere likelihood. Whatever he saw, it settled the matter at once.

The reader's lesson goes beyond this ayah. Vivid is not the same as true. A story with more detail feels more reliable, and often is less. When the Qur'an is silent about a detail, its silence is a guard. We are not asked to fill it with what our imagination supplies, least of all about a prophet.

The sin was moved, not the man

Read the grammar closely. Allah does not say: We turned him away from evil. He says: We turned evil away from him. The thing that moved was the sin. It was shifted out of his path.

The root of the verb is the money changer's word: turning a coin back across the table. It is also used of turning a crowd back the way it came. Here, a whole oncoming thing is turned round before it reaches him.

A later scholar distinguishes the two words. Al-sūʾ, he says, is the evil of infatuation in the heart; al-faḥshāʾ is the act itself. Both were turned away, and he names the means: ikhlāṣ, sincerity, which the ayah mentions in its last word. A heart made sincere for Allah, he explains, gives no room to that kind of passion. Such passion only settles in an empty heart. He quotes a poet: her love reached me before I knew love, and found an empty heart, and settled there.

Another commentator suggests that al-sūʾ may also mean the approaches to the sin: the lingering look, the touch. Those too were turned away.

That is a practical psychology. The safest defence is not a stronger will at the last moment. It is a heart already occupied. A man's evenings fill up with his family, his Qur'an class and his ageing father. He finds that an old late-night habit has nowhere left to sit.

Fill the room before the visitor knocks. That is not a trick of willpower. It is what Allah describes doing for those who are His.

What the fire leaves behind

The ayah closes on one word, read in two ways. The reading in most copies today is al-mukhlaṣīn: those Allah has made pure and chosen for Himself. Others read al-mukhliṣīn: those who make their worship sincere. One commentator notes that both are true of Yusuf. He was sincere, and he was chosen.

The root goes back to a Bedouin kitchen. Butter was cooked in a pot over the fire, with a handful of dates or barley thrown in. The dregs clung to these and sank. The clear ghee that rose to the top was the khulāṣa, and the act was ikhlāṣ. Gold that fire had cleared of dross was khilāṣ.

So ikhlāṣ is not a feeling. It is a process: heat, separation, and what remains when everything else has been drawn off.

Now put this beside the opening verb. Hamm was fat melting over a fire. Ikhlāṣ is butter clarified over a fire. Same kitchen, same heat. What came out of the pot depended on what was in it.

One commentator links the word to Yusuf's ancestors. Of Ibrahim, Ishaq and Yaʿqub, Allah says: We purified them with a pure quality, the remembrance of the Home (38:46). The great-grandson stood in the same fire.

The reader will have heat too. The test is not whether it comes. It is what rises when it does. Ask Allah, in the hours before any door is shut, to make you of those He has made pure. Then, when the fire comes, there is less in the pot to sink, and more that rises clear.

A common misreading

Often heard: Yusuf nearly did it, and was stopped at the last second by a vision.

Closer to the ayah: The ayah says Allah turned evil away from him and calls him one of the purified. The vivid details come from reports with no chain to the Prophet ﷺ, and every witness in the surah clears him.

Often heard: Feeling drawn to a sin proves your faith is fake.

Closer to the ayah: Scholars distinguish a passing thought from a persistent resolve. In a hadith in al-Bukhari and Muslim, a bad deed intended and left for Allah is written as a good deed.

Words to know

وَهَمَّ wa hamma · the root h-m-m

Inclined, had it in mind. Scholars read it either as negated by what follows, or as a passing inclination unlike her persistent resolve. Other glosses, such as intending to strike her, were judged weak.

بُرْهَـٰنَ burhāna

Proof: decisive evidence. The reports differ on what he saw, and one early commentator holds that no proof fixes which, so it is left as Allah left it.

ٱلْمُخْلَصِينَ al-mukhlaṣīn · the root kh-l-ṣ

The purified, chosen for Allah. Other readers have al-mukhliṣīn, the sincere. Iblis uses the same word of the servants he cannot lead astray (15:40).

Questions to sit with

Live it today

Next time you turn away from something for Allah's sake, tell Him quietly that you left it for Him. Then fill the next hour with something good, so the room is not left empty.

Echoes in the Quran

Come back to this ayah when you feel...

when intrusive thoughts will not stop · when you are tempted to gossip · when temptation is within reach · when no one will ever check · when you fear it is too late to change

This ayah and other verses on the same subject

Quran verses about sincerity

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:24 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.