General Context
This verse closes the explanation and brings the disclosures in the story of Moses and al-Khidr to their height. The last veil lifts here. What looked like unpaid work for people who had been mean to their guests was in fact care for the rights of two orphans who were absent. Moses, peace be upon him, could see a town that had refused hospitality, a wall leaning over, and labor for which no one was paid. Al-Khidr, meanwhile, was carrying out Allah’s command to preserve a buried treasure for two orphan boys. They were to reach maturity and bring it out when the time was right.
Something remarkable comes into view here. In one place there can be people whose meanness is plain to see and two orphans sheltered through Allah’s gentleness. No place should be treated as though the misconduct of those who come into view tells us everything about it. Behind the leaning wall there may be a treasure. Behind the treasure stands the righteousness of a father, and behind that righteousness, the mercy of the Lord. A wall that looked ready to fall becomes a shelter placed by Allah over provision held in reserve. Had it fallen too soon, the treasure would have come to light, and people might have taken it or it might otherwise have been lost to the orphans. Had the boys uncovered it before they had sound judgment, they might have been unable to keep it safe. Allah’s mercy kept the wall upright until they reached maturity.
Al-Tabari gives the basic sense: “Allah Most High relates what Moses’ companion said. As for the wall I put upright, it belonged to two orphan boys in the town, and under it was a treasure belonging to them. The exegetes differed about that treasure. Some said it consisted of buried pages containing knowledge. […] Others said it was stored wealth. […] The stronger of the two interpretations is the one ʿIkrimah gave. In familiar Arabic usage, treasure denotes [wealth] that has been stored away. Anything stored away can be called a treasure, but one interprets revelation according to the predominant usage of those it addressed unless there is evidence requiring another reading.” — Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qur’an — Muhammad ibn Jarir al-Tabari.
Al-Tabari thus favors buried wealth, while acknowledging the view that it consisted of pages containing knowledge. Allah’s gentleness is evident in either case. Wealth would safeguard the orphans’ livelihood, and knowledge would preserve a useful inheritance. The apparent sense of the word favors wealth, since in Arabic kanz usually refers to money or valuables buried for safekeeping.
Rhetorical Outpourings
Al-Khidr introduces the third explanation with ﴿وَأَمَّا ٱلۡجِدَارُ﴾ (“And as for the wall”, Qur’an 18:82), following ﴿أَمَّا ٱلسَّفِينَةُ﴾ (“As for the ship”, Qur’an 18:79) and ﴿وَأَمَّا ٱلۡغُلَٰمُ﴾ (“And as for the boy”, Qur’an 18:80). This completes the three parts of the explanation: the livelihood of the poor, the faith of the parents, and the rights of the orphans. Together they encompass three great ends of mercy: preserving a livelihood, safeguarding faith, and protecting the property of people who cannot defend their own interests.
The verse also shifts subtly from ﴿قَرۡيَةٍ﴾ (“a town”, Qur’an 18:77) in ﴿أَتَيَآ أَهۡلَ قَرۡيَةٍ﴾ (“they came to the people of a town”, Qur’an 18:77) to ﴿ٱلۡمَدِينَةِ﴾ (“the city”, Qur’an 18:82) here. The commentators point out that either Arabic term can refer to the same place. Here the change of word suits the change of focus. When the inhabitants’ meanness was in view, the word was qaryah, a settlement. When the orphans and their claim to the treasure are in view, the word is madinah, a town. The second expression seems to lift our eyes from a group that refused hospitality to a place where someone’s right is being protected.
Al-Biqaʿi says: “Calling it a settlement does not prevent it from being called a town. The word ‘settlement’ was more fitting at first. It derives from a sense of gathering, and so better conveys blame for withholding hospitality. It points to their stinginess when gathered and to their love of collecting and keeping what they have. ‘Town’ carries the sense of residence and was more fitting here. It indicates that people live there and might have been present when the wall collapsed and taken the treasure. Thus he said ﴿في المدينةِ﴾ (“in the city”, Qur’an 18:82), and for that reason I set it upright in hope of Allah’s reward.” — Nazm al-Durar fi Tanasub al-Ayat wa-l-Suwar — Ibrahim ibn ʿUmar al-Biqaʿi.
The expression ﴿لِغُلَٰمَيۡنِ يَتِيمَيۡنِ﴾ (“to two orphan boys”, Qur’an 18:82) makes the reason for compassion plain. The verse could simply have said “belonging to two boys.” By saying ﴿يَتِيمَيۡنِ﴾ (“orphan”, Qur’an 18:82), it brings together their youth and their loss of protection. An orphan generally has little power to press a claim, few means of defending his property, and little experience in holding on to a treasure that comes to light too early. The wall served as a silent guardian of their provision until they had the strength and judgment to look after it.
Malik was asked what ashudd, full strength, means in the verse. The account reads: “Malik was asked about the words of Allah, Mighty and Majestic, ﴿فأَرادَ رَبُّكَ أنْ يَبْلُغَا أَشُدَّهما﴾ (“So your Lord intended that they reach maturity”, Qur’an 18:82): ‘What is full strength?’ He answered: ‘Puberty.’ Malik said that Allah Most High says ﴿ولا تَقْرَبُوا مالَ اليَتِيمِ إلّا بالَّتِي هِيَ أَحْسَنُ حتّى يَبْلُغَ أَشُدَّهُ﴾ (“And do not approach the orphan's property except in a way that is best until he reaches maturity.”, Qur’an 6:152), and that full strength here means puberty.” — Al-Bayan wa-l-Tahsil wa-l-Sharh wa-l-Tawjih wa-l-Taʿlil li-Masaʾil al-Mustakhrajah — Muhammad ibn Ahmad Ibn Rushd the Elder, 18/358, reporting Malik ibn Anas.
This interprets full strength as puberty. Ibn Rushd then reports that there was disagreement over how to define it. In safeguarding an orphan’s property, puberty is considered together with signs of sound judgment, as Qur’an 4:6 makes clear. Reaching the requisite age alone does not warrant handing over the property when the orphan shows poor judgment in managing it. In this story Allah preserved the treasure until the boys had reached the strength and capacity He intended for them and could put it to use.
One of the finest points in this conclusion is the change in whose will is named in each of the three incidents. Of the ship he said ﴿فَأَرَدتُّ أَنۡ أَعِيبَهَا﴾ (“So I intended to cause defect in it”, Qur’an 18:79). Of the boy he said ﴿فَأَرَدۡنَآ أَن يُبۡدِلَهُمَا﴾ (Qur’an 18:81). Of the wall he said ﴿فَأَرَادَ رَبُّكَ﴾ (“So your Lord intended”, Qur’an 18:82). The progression is a striking instance of the Qur’an’s courtesy of expression.
Ibn ʿAtiyyah says: “Al-Khidr, peace be upon him, says in the first episode ﴿فأردتُ أنْ أعيبَها﴾ (“So I intended to cause defect in it”, Qur’an 18:79), in the second ﴿فأردْنا أن يُبَدِّلَهما﴾ (Qur’an 18:81), and in the third ﴿فأراد ربُّكَ أنْ يَبْلُغا﴾ (“So your Lord intended that they reach”, Qur’an 18:82). In the first he speaks of his intention in the singular because the word describes causing a defect. Out of courtesy he ascribes that intention to himself alone, just as Abraham, peace be upon him, observes courtesy in ﴿وإذا مَرِضْتُ فهو يشفين﴾ (“And when I am ill, it is He who cures me”, Qur’an 26:80) (Qur’an 26:80). Abraham ascribes the acts before and after this to Allah Most High, ascribing illness to himself because it denotes a deficiency and a calamity. This manner of expression recurs often in the eloquence of the Qur’an. […] In the third he ascribes the intention to Allah Most High because the matter lay in the future, over a long [period], and formed part of the unseen. It was fitting to make this plain by naming Allah Most High.” — Al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAbd al-Haqq ibn Ghalib Ibn ʿAtiyyah.
He observes courtesy by ascribing the damage to himself. When speaking of the child given in return, he uses an inclusive plural. When the future of the orphans is to be safeguarded until they come of age and recover their treasure, he ascribes the intention explicitly to the Lord. The tongue is trained before the heart: what we ascribe to whom, and how we speak with reverence about Allah.
Interpretive and Reflective Outpourings
This verse opens a wide door onto the effect of parents’ righteousness on their children. It says of the two boys ﴿وَكَانَ أَبُوهُمَا صَٰلِحٗا﴾ (“and their father had been righteous”, Qur’an 18:82), drawing attention to their father’s character. His righteousness became a reason for the orphans’ property to be preserved after he was gone. Righteousness can still do good after its bearer has died, guarding his children without their knowing it. The father is absent, his sons are small, the town is mean, the wall is leaning, and the treasure could come to light and be lost. Yet the father’s righteousness is present in Allah’s ordering of events.
Al-Tabari says: “Ibn ʿAbbas said of ﴿وَكانَ أبُوهُما صالِحا﴾ (“and their father had been righteous”, Qur’an 18:82): The two boys were protected through their father’s righteousness. No righteousness of their own is mentioned.” — Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qur’an — Muhammad ibn Jarir al-Tabari.
Al-Jassas says: “The verse ﴿وَكَانَ أَبُوهُمَا صَالِحاً فَأَرَادَ رَبُّكَ أَنْ يَبْلُغَا أَشُدَّهُمَا﴾ (“and their father had been righteous. So your Lord intended that they reach maturity”, Qur’an 18:82) shows that Allah preserves children on account of the righteousness of their parents.” — Ahkam al-Qur’an — Abu Bakr Ahmad ibn ʿAli al-Jassas.
Here is something to stir the heart of every father and mother. Your righteousness can reach beyond you. Your prayers, your truthfulness, your chastity, the lawful food you earn, your willingness to shield others from disgrace, and your supplications in the night may one day, when you are gone, become a wall Allah raises above your child’s treasure. You need never see the effect with your own eyes. It is enough that Allah lets no righteousness go to waste.
Another fine point lies in ﴿وَكَانَ تَحۡتَهُۥ كَنزٞ لَّهُمَا﴾ (“and there was beneath it a treasure for them”, Qur’an 18:82). Provision may already exist and be hidden, near and still delayed, safe and still beyond our reach. The orphans own the treasure while it remains under the wall. Ownership alone does not make its use immediate. How much provision already belongs to you, yet Allah puts a wall over it until your judgment matures. If it appeared too soon it could be lost. If it came to you before you were ready, it could corrupt you, or you might be unable to keep it safe.
Abu al-Suʿud says: “﴿وَيَسْتَخْرِجَا﴾ (“and extract”, Qur’an 18:82) in its entirety, ﴿كَنزَهُمَا﴾ (“their treasure”, Qur’an 18:82) from beneath the wall. Had I failed to set it upright, it would have fallen and the treasure would have come out from under it before the boys had the means to preserve and grow their wealth. It would have been lost.” — Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muhammad ibn Muhammad Abu al-Suʿud.
These words illuminate the wisdom of the act. The wall was keeping the treasure safe for them. Some of the barriers we meet in life protect us until we are ready. A closed door may be sheltering a treasure too heavy for us to carry now.
Notice also that al-Khidr straightened the wall in a town that had refused hospitality for the sake of the two boys. Kindness sometimes takes place where most people have done little to deserve it, because among them is someone vulnerable whose rights deserve protection. A group’s meanness gives us no right to let a weak person’s claim among them go to waste.
Al-Qushayri says: “As for setting the wall upright, it was done to preserve the boys’ treasure and to dispense with seeking assistance from other people.” — Lataʾif al-Isharat — ʿAbd al-Karim ibn Hawazin al-Qushayri.
Al-Khidr asked the townspeople for no wage and did not make the good he did contingent on their generosity. He was acting under Allah’s command. When a person works for Allah, the meanness of others cannot spoil the act.
Spiritual Outpourings
This is one of the most tender Qur’anic pictures of unseen protection. Two orphans are absent, their righteous father is gone, treasure lies beneath the ground, a wall is about to fall, and the town will not feed a hungry guest. Al-Khidr comes, sets the wall upright, and moves on. How many walls has Allah raised in our lives without our knowing? How many treasures has He kept safe under a cover we took for a delay? How many prayers of a righteous father or mother have gone on doing good unseen after they have left us?
Al-Zamakhshari says: “﴿وَكَانَ أَبُوهُمَا صالحاً﴾ (“and their father had been righteous”, Qur’an 18:82) acknowledges the father’s righteousness and safeguards what was due to him in the care of his two children.” — Al-Kashshaf ʿan Haqaʾiq Ghawamid al-Tanzil — Mahmud ibn ʿUmar al-Zamakhshari.
The father’s righteousness carries a “claim” Allah honors in the care of his children. This is no invitation to rely upon one’s parents’ righteousness and neglect one’s own deeds. It shows Allah’s generosity. He honors His servant’s righteousness and cares for its effects in those who come after him. A child has no idea how much harm may have been averted by his father’s prostration long ago or a sincere tear from his mother.
In ﴿رَحۡمَةٗ مِّن رَّبِّكَ﴾ (“as a mercy from your Lord”, Qur’an 18:82) the whole story is gathered up. There was mercy in damaging the ship, mercy in what the boy’s death meant within this exceptional knowledge, and mercy in setting the wall upright. None of this was clear at the time of the acts. That is the lesson: Allah’s mercy may be hard to the touch at first. It may come as damage, loss, or labor that goes unpaid. What it meant can become clear much later.
Fakhr al-Din al-Razi says: “﴿رحمةً مِن ربِّكَ﴾ (“as a mercy from your Lord”, Qur’an 18:82) means I did these things so that the mercy of Allah Most High might be made manifest. All of them come down to a single principle: bearing a lesser harm to avert a greater one.” — Mafatih al-Ghayb — Fakhr al-Din Muhammad ibn ʿUmar al-Razi.
These words gather up the three incidents. A lesser harm averts a greater one. A small breach saves a ship. A painful loss spares two believing parents the burden of transgression and disbelief. Labor without pay safeguards two orphans’ treasure. Mercy courses through them all, though the heart only recognizes it when the interpretation comes.
Sayyid Qutb concludes his reflection on the story: “The man then disclaims any authority of his own in the matter. It was Allah’s mercy that called for what he did, and it was Allah’s command. Allah had disclosed to him something of the unseen in this affair and in the ones before it and directed him to act in accordance with what He had disclosed: ﴿رحمة من ربك وما فعلته عن أمري﴾ (“as a mercy from your Lord. And I did it not of my own accord”, Qur’an 18:82). Now the veil has been lifted from the wisdom of those acts, just as some of Allah’s unseen knowledge was disclosed, which He reveals only to those with whom He is pleased.” — In the Shade of the Qur’an — Sayyid Qutb Ibrahim Husayn al-Shadhili.
Here the story comes to rest. The pain is still what it was, but what it meant has come to light. When something comes to be understood as mercy from Allah, the heart moves from objection to surrender.
Psychological Outpourings
The verse trains the soul to be patient before obstacles. The wall stood over the treasure as a barrier, and it was a merciful one. The soul naturally wants to get to what it thinks belongs to it straight away. A person may rush to remove what hides his property without knowing the good that lies in keeping it hidden for now. Had the treasure appeared before the boys had the strength to use it, it would have been lost. What holds you back now may be what protects you until you grow.
Reaching maturity here involves strength and fitness to manage one’s affairs. Ibn ʿAtiyyah says: “Full strength is the [maturity] of physical constitution and judgment.” — Al-Muharrar al-Wajiz fi Tafsir al-Kitab al-ʿAziz — ʿAbd al-Haqq ibn Ghalib Ibn ʿAtiyyah. Allah willed for them the strength and maturity to use the treasure. One lesson is to look at our own readiness for what we ask of life and to prepare ourselves to put the provision we hope for to good use. We have no grounds for assuming that any delay in what reaches us reflects a lack of maturity.
The words ﴿وَيَسۡتَخۡرِجَا كَنزَهُمَا﴾ (“and extract their treasure”, Qur’an 18:82) also suggest that once a person is ready, he must take the trouble to bring out what has been provided for him. The verse could have said “and that their treasure be taken out for them.” It gives them the active role in ﴿وَيَسۡتَخۡرِجَا﴾ (“and extract”, Qur’an 18:82). Mercy kept the treasure safe and left them the work of getting it out once they came of age. Allah’s gentleness allows His servant to act, while delaying the provision until he can rightly take hold of it.
For Moses, peace be upon him, the verse answers everything that troubled him about the wall. He saw energy spent without pay in a town whose people were mean. The labor turns out to have protected two orphans. How often the soul calls a deed impractical, unprofitable, or misplaced because it cannot see the vulnerable person in the background who will benefit from it.
Abu al-Suʿud says: “﴿فَأَرَادَ رَبُّكَ﴾ (“So your Lord intended”, Qur’an 18:82), meaning your Master and the One who orders your affairs. The Lord is related to Moses, peace and blessings be upon him, rather than the two boys. Moses is thereby reminded that he must submit completely to His will, glory be to Him, and refrain from disputing the things that came about in accordance with it.” — Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muhammad ibn Muhammad Abu al-Suʿud.
There is a quiet psychological point in the form of the address: ﴿رَبُّكَ﴾ (“your Lord”, Qur’an 18:82), Moses. The One who ordered things for the boys is your Lord too. Through these events He was teaching you as well. The story protects the orphans and educates Moses and all of us.
Pedagogical Outpourings
This is one of the foremost Qur’anic passages on teaching children through a righteous example before giving them instructions. The father was absent and yet his righteousness was present. We hear no word from him, and we see him perform no direct act in the story. Still, the effect of his life endured under the wall. What parents can leave their children to greatest effect extends beyond money to the kind of righteousness that keeps both the wealth and the child safe.
Here too is a great principle for the care of an orphan’s property until maturity. The treasure was kept from the eyes of those who might covet it and from the boys’ hands while they were too young to manage it. It remained safe until they had the strength to bring it out. This connects the verse with the Qur’an’s commands to deal with an orphan’s property only in the best way until the orphan reaches full strength.
There is a lesson for educators and leaders. You may do something today that people do not understand because its fruit is meant for a generation still to come. Setting up the wall brings little outward glory and no immediate pay. It safeguards two orphans’ future. Everyone who works for coming generations understands something of the wall: building that brings no applause today and keeps tomorrow’s treasure from being lost.
Al-Maraghi says: “﴿وما فعلته عن أمري﴾ (“And I did it not of my own accord”, Qur’an 18:82) means I did what you saw me do under Allah’s command, without acting on my own judgment or of my own accord. Diminishing people’s property and shedding their blood cannot be undertaken without revelation and decisive text.” — Tafsir al-Maraghi — Ahmad Mustafa al-Maraghi.
This also sets the limits of the educational lesson. What happened with al-Khidr was bound to Allah’s command. It cannot serve as an example for a teacher to dispose of others’ rights on a claim of benefit or hidden knowledge. The reader can learn from the mercy that has come to light, remain humble about what he cannot know, and observe the rulings of the religious law that apply to him.
Contemporary Outpourings
One of the gravest ways to misuse the story of al-Khidr is to cite it as grounds for setting the religious law aside in the name of hidden knowledge or inspiration. The verse settles the matter in ﴿وَمَا فَعَلۡتُهُۥ عَنۡ أَمۡرِي﴾ (“And I did it not of my own accord”, Qur’an 18:82). Al-Khidr makes no claim to have acted on discernment, a feeling, a passing thought, or an unveiling that authorized him to set the law aside. He expressly denies acting on his own authority. He acted under Allah’s command, free of any private impulse or personal reasoning.
Al-Tabari says: “His words ﴿وَما فَعَلْتُهُ عَنْ أمْرِي﴾ (“And I did it not of my own accord”, Qur’an 18:82) mean: Moses, I did everything you saw me do under the command Allah gave me, without acting on my own opinion or of my own accord.” — Jamiʿ al-Bayan ʿan Taʾwil Ay al-Qur’an — Muhammad ibn Jarir al-Tabari.
Fakhr al-Din al-Razi says: “﴿وما فعلته عن أمري﴾ (“And I did it not of my own accord”, Qur’an 18:82) means that I did what you saw in these incidents under Allah’s command and revelation, without acting on my own authority, independent reasoning, or opinion. Diminishing people’s property and shedding their blood cannot be undertaken without revelation and decisive text.” — Mafatih al-Ghayb — Fakhr al-Din Muhammad ibn ʿUmar al-Razi.
This is the boundary every reader should fix in his heart. No one may diminish other people’s property, harm their persons, or set aside the outward rulings of the religious law on a claim of inspiration or unveiling. Al-Khidr was acting on a command. The story itself answers those who make such claims: ﴿وَمَا فَعَلۡتُهُۥ عَنۡ أَمۡرِي﴾ (“And I did it not of my own accord”, Qur’an 18:82).
Al-Qurtubi relates from his teacher, Imam Abu al-ʿAbbas al-Qurtubi, this severe judgment on the historical claim that the story authorizes setting aside revealed laws: “This position is heresy and disbelief. Its proponent is to be put to death without being asked to repent, because it denies what is known of the revealed laws. Allah Most High has established His way and carried out His wisdom by making His rulings known only through His messengers, emissaries between Him and His creation. They deliver His message and His words and make His laws and rulings clear.” — Al-Jamiʿ li-Ahkam al-Qur’an — Muhammad ibn Ahmad al-Qurtubi.
Ibn ʿAshur, warning against claims about al-Khidr and uncontrolled appeals to esoteric knowledge, says: “What appears strongest is that al-Khidr, peace be upon him, was a prophet and that he received what was revealed to him, on the evidence of ﴿وما فعلته عن أمري﴾ (“And I did it not of my own accord”, Qur’an 18:82). His story ended after the events told in this surah, and death came to him as it comes to human beings, even at the farthest limit of a lifespan one could suppose. […] Therefore be wary of anyone who says, ‘Al-Khidr told me.’” — Al-Tahrir wa-l-Tanwir — Muhammad al-Tahir Ibn ʿAshur.
This is of the utmost importance for a contemporary reader. No one today has the right to damage someone’s ship, violate a life, or dispose of an orphan’s property and then say, “I received inspiration.” The religious law governs such things, and clear evidence is the way to apply it. Passing thoughts yield no rulings from Allah. The story of al-Khidr teaches humility before Allah’s wisdom and fidelity to His law.
The final words ﴿ذَٰلِكَ تَأۡوِيلُ مَا لَمۡ تَسۡطِع عَّلَيۡهِ صَبۡرٗا﴾ (“That is the interpretation of that about which you could not have patience.”, Qur’an 18:82) bring the account to a fine close. At the beginning of the promise he said ﴿مَا لَمۡ تَسۡتَطِع عَّلَيۡهِ صَبۡرًا﴾ (“of that about which you could not have patience”, Qur’an 18:78). Here he says ﴿تَسۡطِع﴾ (“could”, Qur’an 18:82), omitting the second tāʾ of the full form. The word seems to grow lighter after the explanation, as the weight of uncertainty lifts after the interpretation. Before it was disclosed, what had happened was harder to bear, and the word was longer. After the meaning came into view and grew easier to carry, the word grew lighter as well.
Al-Biqaʿi says: “﴿تأويلُ ما لم تَسْطِعَ﴾ (“the interpretation of that about which you could not”, Qur’an 18:82), O Moses, ﴿عليه صَبْراً﴾ (“have patience”, Qur’an 18:82). The tāʾ of the form denoting capacity has been omitted here because after the veil was lifted the matter had become bearable. Had it been plain from the outset, a person who rejected it would have shown no patience in the first place.” — Nazm al-Durar fi Tanasub al-Ayat wa-l-Suwar — Ibrahim ibn ʿUmar al-Biqaʿi.
Abu al-Suʿud says: “﴿تأويل ما لم تسطع﴾ (“the interpretation of that about which you could not”, Qur’an 18:82), that is, what you could not bear, with the tāʾ of the full form omitted for ease of pronunciation, ﴿عليه صبرا﴾ (“have patience”, Qur’an 18:82), among the things that troubled him. It means their outcome and consequence, and thus fulfills the promise to make them known. Or the demonstrative refers to the explanation itself, in which case taʾwīl means interpretation.” — Irshad al-ʿAql al-Salim ila Mazaya al-Kitab al-Karim — Muhammad ibn Muhammad Abu al-Suʿud.
This is one of the subtleties of the Qur’an’s composition. When the meaning weighs heavily, the word grows heavy with it. When some of that weight is lifted, the word grows lighter. Al-Biqaʿi draws this connection between the lighter form and the newly disclosed meaning. Abu al-Suʿud gives ease of pronunciation as the basic reason for the omission. The close of the verse recalls what Moses could not bear patiently before hearing the explanation. It gives us no reason to think he went on objecting after it was known.
The story of Moses and al-Khidr ends with three teachings that only come fully into focus together. In people’s affairs, judge by the outward rulings of the religious law and be wary of unsupported claims of hidden knowledge. Where Allah has decreed something you do not understand, trust His wisdom. Be patient and seek understanding, knowing that some of the wisdom may remain beyond you in this life. Trust that Allah wrongs no one, without making your certainty of His justice depend on knowing the meaning of everything that has befallen you.
Sayyid Qutb says in conclusion: “The story represents the greater wisdom. This wisdom reveals itself only to a certain degree. The rest remains hidden in Allah’s knowledge behind the veils. In the surah’s progression, the story of Moses and the righteous servant thus connects with that of the Companions of the Cave. Both leave the unseen to Allah, who orders things in His wisdom in accordance with His encompassing knowledge, which human beings cannot attain. They stand on this side of the veils, and only so much of the secrets beyond them is disclosed.” — In the Shade of the Qur’an — Sayyid Qutb Ibrahim Husayn al-Shadhili.
This is where the story belongs in the surah. The unseen belongs to Allah, the ordering of affairs belongs to Allah, and wisdom belongs to Allah. Only a little knowledge is opened to human beings, in due measure. The Companions of the Cave slept while Allah ordered their affairs. Moses walked with al-Khidr and learned the meaning of what had happened only when they were parting. The owner of the two gardens was deceived by what he could see and forgot what lay beyond it. Dhu al-Qarnayn made use of the means available to him and remembered his Lord’s favor. The same thread runs through them all: human knowledge is limited, and Allah encompasses all things.
Verse 82 brings this journey to its fullest close. The wall was shelter for a treasure. Behind the orphans stood a righteous father. A place marked by meanness still held rights that deserved protection. The man who performed those astonishing acts was a servant under command who had not acted on his own authority. Moses was a prophet judging by the outward evidence, learning that there can sometimes be knowledge beyond what a human being can see.
If you see a wall leaning in your life, do not hurry to pray that it fall. Your treasure may lie beneath it. If some provision you love is delayed, perhaps you have yet to reach your full strength. If you had a righteous father or mother, remember that their righteousness may be a wall shielding you without your knowledge. If you are a father or mother, make your own righteousness a wall for your children that no eye can see. If someone comes claiming hidden knowledge that contradicts the religious law, remind them of al-Khidr’s words ﴿وَمَا فَعَلۡتُهُۥ عَنۡ أَمۡرِي﴾ (“And I did it not of my own accord”, Qur’an 18:82). After the Seal of the Prophets, we take our religion from the Book of Allah and the Sunnah of His Messenger, which are firm ground far beyond what can be dreamed up or imagined.
That is the interpretation of what Moses could not bear patiently and of what we are still learning to bear in the things decreed for us. How much we need this story when our ships are breached, our hearts break, our walls lean, and our eyes can no longer see the mercy quietly at work in the unseen.
﴿وَأَمَّا الْجِدَارُ فَكَانَ لِغُلَامَيْنِ يَتِيمَيْنِ فِي الْمَدِينَةِ وَكَانَ تَحْتَهُ كَنزٌ لَّهُمَا وَكَانَ أَبُوهُمَا صَالِحًا فَأَرَادَ رَبُّكَ أَن يَبْلُغَا أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةً مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُ عَنْ أَمْرِي ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًا﴾ (82)
And as for the wall, it belonged to two orphan boys in the city, and there was beneath it a treasure for them, and their father had been righteous. So your Lord intended that they reach maturity and extract their treasure, as a mercy from your Lord. And I did it not of my own accord. That is the interpretation of that about which you could not have patience." (Qur’an 18:82)