Surah Al-Ma'idah, ayah 40 (5:40)
Surah Al-Ma'idah · Madani · ayah 40 of 120 · in Seeking nearness, and the verdict people want
Ponder Al-Ma'idah 5:40 in the app →أَلَمْ تَعْلَمْ أَنَّ ٱللَّهَ لَهُۥ مُلْكُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضِ يُعَذِّبُ مَن يَشَآءُ وَيَغْفِرُ لِمَن يَشَآءُ ۗ وَٱللَّهُ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ
“Do you not know that to Allāh belongs the dominion of the heavens and the earth? He punishes whom He wills and forgives whom He wills, and Allāh is over all things competent.”
Saheeh International
What does Surah Al-Ma'idah 5:40 mean?
After a penalty and a pardon, the frame around both: every heaven and earth is His, and only He punishes or forgives as He wills.
Reflections
A question that asks you to answer it yourself
A-lam taʿlam: do you not know? It is not a request for information. One concise commentary calls it a question of affirmation. It hands you a fact you already hold and asks you to say it aloud. Yes, I know. To Allah belongs the dominion of the heavens and the earth.
Now read it after the two ayat before it. A thief has taken something from a locked drawer. Someone has turned back and set it right. Then the camera pulls back, all the way. The drawer sits in a flat, in a city, on a planet, under heavens without number. All of it is His. The thief took from a corner of a corner of His dominion, and the owner had held it only on loan.
That should shrink something in us. Two neighbours in a block of flats have argued for eight months over one parking bay. Letters, photographs, a complaint to the managing agent. Both will leave the building one day. Both will leave the earth. Neither has ever owned a single brick in the sense of this ayah.
One commentary says the word for dominion here joins two things: ownership and rule. He owns everything, and He commands it, and no one can overturn His judgement. Human ownership is partial and lent. It was given after it was not, and it will be taken back from the hand. The ego that says mine so loudly is speaking about a loan.
Does Allah remind us of His kingship because He needs it acknowledged? Musa told his people: if you and everyone on earth disbelieve, Allah is free of need, Praiseworthy (14:8). Denial takes nothing from Him. The reminder is for us. A frightened child is told whose house this is so that he can sleep, not so the house can feel important.
'Whom He wills' does not mean 'at random'
Late one night an engineering student messages his older sister. 'If He punishes whom He wills and forgives whom He wills, why try? It sounds random.' It is a fair question, and the ayah's own neighbours answer it.
Look at the names just before. 5:38 ends: Mighty, Wise. 5:39 ends: Forgiving, Merciful. Will in the Quran never appears alone, as bare preference. It is the will of the Wise, the Forgiving, the Merciful. One concise commentary puts the pair in a line. He punishes whom He wills by His justice, and forgives whom He wills by His grace. Nobody is punished beyond what is due. Some receive far more than they are due.
Early commentators also read the ayah against its setting. On one reading, those He punishes are the ones who persist, and those He forgives are the ones who turn back. That is the thief who kept stealing and the thief who repented, from the two ayat before. 'Whom He wills' is not chance. It is a summary of a door just described.
The word for punishment, ʿadhāb, has a debated root. Several classical explanations link it to holding back: a horse standing with its head raised, refusing food and water. One lexicographer says the root's senses cannot be gathered under one meaning. On the view that links them, punishment is being held back from everything that gives ease. That is one classical view, offered as such.
What remains open? Why one person is guided to turn and another is not is a question the ayah does not unfold here. But 'whom He wills' is not a shrug. A good judge's discretion is trusted because of who he is. Here the One deciding has just named Himself four times, and every name is a reason to trust Him.
There is no family name with Allah
Two classical commentators connect this ayah to a claim answered earlier in the same surah. Some people had said: we are the children of Allah and His beloved (5:18). The reply there was simple. Then why does He punish you for your sins? Here the commentators hear the same reply again. Everything in the heavens and the earth is His property and His creation. There is no lineage between Him and any of it that would make Him favour someone. The prescribed penalties fall on whoever commits the deed.
It is easy to read that as a point about others. The ayah is better read as a mirror.
Muslims have their own versions of the family name. I come from a religious family. I pray in the front row. I am a ḥāfiẓ (one who has memorised the Quran). Picture a woman who has memorised all thirty parts. She is quietly sure that something of it will cover the way she speaks to her mother-in-law. She would never say it. But the assumption sits there, doing its work.
The Quran in her memory is a great gift. But this ayah says there is no seat in His dominion reserved by name. Nobody owns a private exemption from what the previous two ayat described. The thief from a famous clan and the thief from nowhere stand under the same law. The repentant of every background meet the same Forgiving, Merciful Lord.
That cuts both ways, and both are a mercy. Nobody is too well-connected to be held to account. And nobody is too unconnected to be forgiven. The new Muslim with no family behind her and the scholar's grandson approach Him by the same door: turning back, and setting right.
Ask yourself what you are quietly counting on that is not your own turning back.
Why punishment comes first in this sentence
In a hadith recorded by al-Bukhari, the Prophet ﷺ said that when Allah completed creation, He wrote in a book with Him above the Throne. It reads: My mercy outstrips My anger. So why does this ayah put punishment first and forgiveness second?
One commentary asks exactly that, and offers several answers. Each one teaches something about reading the Quran.
The first answer is order. 5:38 spoke of the theft, and 5:39 of the repentance. So 5:40 keeps the same sequence: punishment for the one who persisted, forgiveness for the one who turned. The sentence follows the story.
The second answer is time. Punishment here may mean the worldly penalty, which comes first. Forgiveness may mean pardon in the Hereafter, which comes later. The words follow the order in which things happen.
The third answer is setting. This passage is a warning. A warning leads with what is being warned against.
The fourth is the most striking. The ayah ends by describing Allah's power. Power shows more plainly in punishing than in forgiving, the commentary says, because nobody resists being forgiven. Someone being punished resists with everything he has.
None of these contradicts the hadith. Mercy outstripping anger describes Allah Himself. The order of a sentence serves the moment it is spoken in. A parent who loves a child more than anything still says 'stop' before 'well done' when the child is at the kerb.
There is a lesson in that for anyone who teaches or leads. Order your words for the moment, not to prove what you feel. The Quran's tenderness is not measured by which word comes first. It is measured by the door it has just held open in the ayah before.
A sentence no human ruler may borrow
He punishes whom He wills and forgives whom He wills. There is a kind of leader who quietly speaks like that.
Picture a shift supervisor at a delivery depot. One driver clocks in twenty minutes late and loses half a day's pay. His friend is late the same week. The supervisor laughs it off and buys him a coffee. Ask him why and he shrugs. 'My depot. My call.'
This ayah shows why that shrug is borrowed from a place no human may stand. The sentence about willing to punish or forgive rests on two foundations. The first is total dominion: to Him belongs the dominion of the heavens and the earth. The second is total power: Allah is over all things capable. Behind both stands total might and wisdom, named in 5:38.
No supervisor, judge or head of state has any of the three. Human authority is lent, partial and ignorant of most of what it governs. That is exactly why the two ayat before bind human hands so tightly. A fixed minimum. A guarded place. No doubt. No penalty taken into private hands. Discretion belongs to the One who sees everything. People who see little must keep to rules.
The word qadīr (all-powerful) comes from a root whose first sense is measure: a thing's exact amount and limit. The lexicons describe a horse whose hind hooves landed exactly where its forefeet had stepped, as if each stride were measured. His power is never mood. It is measure.
So leaders should keep a clear line. 'Whom He wills' is His. 'By the rule, for everyone' is ours. A leader who takes the first sentence for himself has quietly claimed a throne. One who keeps the second has understood whose dominion he is standing in.
Too sure of mercy, too sure of punishment
One early reading of this ayah is attributed to a Companion of the Prophet ﷺ. He punishes whom He wills for a small sin, and forgives whom He wills a great one. It is a sentence that unsettles two kinds of people at once.
The first is a retired tailor in his seventies. In his twenties he did something he has never told anyone. He prays, he gives, he is kind to his grandchildren. But underneath, he is certain that one thing closed the door for good. He has decided on Allah's behalf that it is too big.
The second is his granddaughter, nineteen and bright. She sleeps through the dawn prayer three days a week and is sure it counts for nothing. Everyone does it. Allah is merciful. She has decided on Allah's behalf that it is too small.
The ayah takes both decisions out of their hands. Neither of them owns the scales. Whom He wills means the grandfather cannot shut a door that Allah keeps open. It also means the granddaughter cannot prop open a door by her own assurance.
Fear and hope are meant to travel together. Lose either and the journey fails. This ayah keeps both in the same sentence. It refuses despair to the one who has done much, and refuses carelessness to the one who thinks she has done little.
The practical upshot is simple. Do not measure your own sins for Him. Take the big one to Him as if it could be forgiven, because it can. Take the small one to Him as if it mattered, because it may. Then leave the scales with the One to whom the heavens and the earth belong.
A common misreading
Often heard: 'Whom He wills' means by whim, at random.
Closer to the ayah: His will is the will of the Mighty, Wise, Forgiving, Merciful named in the two ayat before: He punishes by His justice and forgives by His grace, and in context the punished persist while the forgiven turn back.
Often heard: Belonging to a religious family, community or role earns a reserved place with Allah.
Closer to the ayah: Everything in the heavens and the earth is His, and there is no lineage between Him and any of it that would make Him favour one. Everyone reaches Him by the same door: turning back and setting right.
Words to know
مُلْكُ mulku · the root m-l-k
Dominion. The root's plainest sense is having a thing within your power. Two branches grow from it: milk, ownership, and mulk, rule over people and lands. Every king owns, but not every owner is a king. Here the word is mulk, rule, over the heavens and the earth together. The same Lord who owns the drawer the thief opened also governs the law that judged him.
قَدِيرٌ qadīrun · the root q-d-r
Capable, from a root whose first sense is the exact measure of a thing. From that measuring comes qudra, the power to bring something to the measure one intends. One concise commentary notes that 'all things' here includes both punishing and forgiving. Neither is beyond Him, and neither escapes His measure.
Questions to sit with
- What do I call 'mine' most loudly, and how would I hold it if I remembered it is on loan?
- Which of my own sins have I already measured for Allah, as too big to forgive or too small to matter?
- Where do I decide by mood what I should decide by a rule that applies to everyone?
Live it today
Tonight, take one sin you think is too big and one you think is too small to Allah by name, and ask forgiveness for both. Tomorrow, make one decision at work or home by a fair rule rather than by mood.
Echoes in the Quran
- Surah Al-Ma'idah 5:18Some had claimed to be His children and beloved. Two commentators read this ayah as the frame around that answer: He alone punishes and forgives.
- Surah Ali 'Imran 3:189The same ownership of heavens and earth is followed there by His power over each thing. Here, by whom He forgives.
Come back to this ayah when you feel...
when you are tempted to judge · when fear of judgement crowds out hope · when you hold power over others · when status or possessions feel like security
This ayah and other verses on the same subject
Quran verses about forgiveness
A Name of Allah in this ayah
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
Read the whole surah
The knot, the plate and the table spread: a reflection on all of Surah Al-Ma'idah, from its first ayah to its last.
Ponder Al-Ma'idah 5:40 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.