Surah Al-Kahf 18:82
سُورَةُ الكَهۡفِ · Meccan · Verse 82 of 110
وَأَمَّا ٱلْجِدَارُ فَكَانَ لِغُلَٰمَيْنِ يَتِيمَيْنِ فِى ٱلْمَدِينَةِ وَكَانَ تَحْتَهُۥ كَنزٌۭ لَّهُمَا وَكَانَ أَبُوهُمَا صَٰلِحًۭا فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةًۭ مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًۭا
Translation
The wall belonged to two young orphans in the town and there was buried treasure beneath it belonging to them. Their father had been a righteous man, so your Lord intended them to reach maturity and then dig up their treasure as a mercy from your Lord. I did not do [these things] of my own accord: these are the explanations for those things you could not bear with patience.’
English translation: M.A.S. Abdel Haleem.
Meaning and reflection
'And as for the wall, it belonged to two orphan boys in the city, and beneath it was a treasure for them, and their father had been righteous. So your Lord willed that they reach maturity and extract their treasure, as a mercy from your Lord. And I did not do it of my own accord. That is the interpretation of what you could not have patience over.' al-Saadi and Ibn Kathir note the crowning lessons: the 'wasted' kindness guarded orphans' inheritance because their father was righteous, a parent's righteousness protecting children after his death; and 'ma fa'altuhu 'an amri', the agent acted only on God's command, not his own will. Ask yourself: three times what looked like harm, waste, or senselessness was in fact precise, purposeful mercy, and none of it was random; all of it was God's doing through His servant. The lesson lands: the confusing, painful chapters of my life are not chaos and not cruelty, but a wisdom whose interpretation I simply have not yet reached. And a father's righteousness reached his orphans across the years, a quiet promise that my own faithfulness may protect those I love long after I am gone. Can I meet what I cannot understand with the trust this story teaches, that the interpretation is real, is merciful, and is coming?
Grounded in classical tafsir: al-Saadi, Ibn Kathir, Ibn Ashur.
Wording
The final explanation in the story of Musa and Al-Khidr focuses on the third event, the repair of a collapsing wall. Al-Khidr reveals that the wall belonged to two orphaned boys in the city and concealed a treasure for them. Their father was a righteous man, and Allah, their Lord, willed that they reach adulthood and uncover their treasure as a mercy from Him. Al-Khidr explicitly states that none of these actions were done by his personal judgment but by divine command, serving as the hidden interpretation of what Musa could not patiently endure.
Shifting Perspectives on Divine Will
One of the most profound insights from the wording of this verse lies in the changing pronouns Al-Khidr uses when referring to the "will" behind each of his three actions. For the boat, he says, "فَأَرَدتُّ أَنْ أَعِيبَهَا" (So *I willed* to damage it). For the young boy, he says, "فَأَرَدْنَا أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًا مِّنْهُ" (So *We willed* that their Lord replace him). Finally, for the wall, the verse says, "فَأَرَادَ رَبُّكَ أَن يَبْلُغَا أَشُدَّهُمَا" (So *your Lord willed* that they reach maturity).
Scholars like al-Razi and Ibn Ashur explain the deep wisdom in these shifts. When the action involved causing a physical defect (to the boat), Al-Khidr attributes the will to himself (أردتُ, 'I willed'), perhaps out of humility for an act that seemed negative on the surface. When the action was the weighty matter of taking a life (the boy), he uses the plural (أردنا, 'We willed'), signifying a profound, shared wisdom in such a significant divine decree. But for the protection of the orphans' treasure, a pure act of grace and preservation for the children of a righteous man, the will is attributed directly to Allah: "ربك" (Your Lord). This highlights that providing for and protecting the innocent, especially due to a parent's piety, is solely an act of immense divine care and mercy.
A Father's Lasting Legacy
The phrase "وَكَانَ أَبُوهُمَا صَالِحًا" (And their father was righteous) is central to this final explanation. Al-Jalalayn and al-Razi both emphasize that the father's righteousness was the direct cause for Allah's preservation of the treasure for his orphaned sons. It teaches us a powerful lesson about the enduring impact of a parent's good deeds. The divine favor extended to these children, safeguarding their inheritance until they were capable of claiming it, was an act of "رَحْمَةً مِّن رَّبِّكَ" (a mercy from your Lord), illustrating how Allah's compassion extends to offspring due to their righteous predecessors.
Beyond My Own Command
Al-Khidr concludes by stating, "وَمَا فَعَلْتُهُ عَنْ أَمْرِي" (And I did not do it by my own command). Ibn Ashur clarifies that this phrase served to definitively remove Musa's confusion, affirming that Al-Khidr's extraordinary actions were not born of personal judgment or error, but were directly commanded by Allah through divine revelation. This confirms Al-Khidr's role as an agent of Allah's profound, hidden wisdom.
Another subtle point in the wording is the slight variation in the verb for "did not bear patiently." Earlier, it was "تَسْتَطِعْ" (tastaṭi‘), but here it becomes "تَسْطِعْ" (tastī‘). Ibn Ashur notes this as an elegant stylistic choice to avoid repetition, using two valid linguistic forms for the same meaning, adding a nuanced beauty to the Quran's expression.
Sources: al-Zamakhshari (al-Kashshaf), al-Jalalayn, al-Razi (Mafatih al-Ghayb), Ibn Ashur (al-Tahrir wa al-Tanwir), al-Jadwal fi I'rab al-Quran (Mahmud Safi)
Qur'anic Worlds
In the profound narrative of Musa and Khidr, Surah Al-Kahf 18:82 unveils the hidden wisdom behind the seemingly strange act of repairing a dilapidated wall. Here, Khidr, the guide endowed with special knowledge, finally explains his actions to Prophet Musa (peace be upon them both). This verse illuminates the deeper layers of divine planning, touching upon the lives of past nations and lessons for every believer.
The Divine Purpose
Khidr explains that the wall belonged to two orphan boys in the city. Beneath it lay a treasure intended for them. Had the wall collapsed, the treasure would have been exposed and likely taken by others, leaving the orphans vulnerable. But the key reason for Allah's intervention, as Khidr reveals, was that "وَكَانَ أَبُوهُمَا صَالِحًۭا" (and their father was a pious man). This single phrase powerfully illustrates how the righteousness of parents can extend blessings and protection to their offspring, even generations later. Imam al-Tabari, citing Ibn Abbas, notes that the children were protected due to their father's piety, even if they themselves were not yet known for their righteousness. Muhammad ibn al-Munkadir, as quoted by al-Baghawi, states that Allah preserves children, grandchildren, and even neighbors due to the piety of a righteous servant.
The Nature of the Treasure
Scholars have differed on the exact nature of the "كنز" (treasure). Some, like Ikrimah (cited by al-Tabari and Ibn Kathir), believed it was actual wealth, such as gold and silver. Others, including Ibn Abbas, Saeed ibn Jubair, and Mujahid, suggested it was a tablet or scrolls containing wisdom and knowledge. This tablet, according to several reports, had inscriptions like "Amazing is the person who believes in destiny, then how could he despair," and "There is no god but Allah, Muhammad is a messenger of Allah," as noted by Ma'arif al-Quran. Regardless of its exact form, the treasure was invaluable, safeguarded by divine will. Khidr's actions were driven by Allah's desire for the boys to reach maturity ("أَشُدَّهُمَا") and retrieve their inheritance when they could protect it.
Beyond Personal Will
Khidr concludes by stating, "وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى" (And I did not do it of my own accord). This emphasizes that his actions were not based on personal judgment or desire, but were direct commands from Allah. This profound statement underscores the vastness of divine wisdom that often operates unseen, shaping events with a deeper purpose than what is apparent on the surface.
A Lesson for Our World
For the first audience, Prophet Muhammad (peace be upon him) and his Companions, this story served as a powerful lesson in patience and trust in Allah's decree. As al-Tabari explains, it was an "admonition" (تأديب) for the Prophet, teaching him not to hasten the punishment of disbelievers, and to understand that Allah's actions, even if seemingly difficult or unjust in appearance, have a wise and just outcome. It’s a reminder that we, with our limited human perception, often cannot grasp the full reality of situations. We are called to reflect on the unseen wisdom behind events and to place our trust in Allah's ultimate plan, just as these orphans benefited from the unseen protection granted through their pious father. This narrative transcends time, inviting us to ponder the enduring impact of righteous deeds and the comfort of knowing that Allah's mercy encompasses all.
Sources: al-Tabari (Jami al-Bayan), al-Baghawi (Maalim al-Tanzil), Sayyid Qutb (Fi Zilal al-Quran), Ibn Kathir, Ma'arif al-Quran (Mufti Shafi), al-Razi (Mafatih al-Ghayb)
Wisdom
This verse concludes the remarkable story of Musa (عليه السلام) and al-Khidr, where al-Khidr explains the hidden wisdom behind his seemingly perplexing actions. After repairing a collapsing wall in a village where they were denied hospitality, Musa questioned why al-Khidr didn't take payment for it, especially given their hunger. This became the final instance that led to their separation, but not before al-Khidr revealed the profound divine plans at play.
The Lasting Gift of Goodness
The core of this verse, and a powerful general lesson, is found in the phrase, "وَكَانَ أَبُوهُمَا صَٰلِحًۭا" (and their father was a righteous man). This refers to the father of the two orphan boys who owned the wall and the treasure beneath it. The commentaries, like al-Qurtubi and al-Munir, highlight that Allah preserved this treasure for the orphans not for their own merit, but because of their father's piety, even stating it could extend protection up to seven generations of his descendants. This teaches us that our acts of righteousness are not just for ourselves; they are an investment for our children and grandchildren. Our sincere devotion can become a means of Allah's protection and provision for those who come after us. It encourages us to strive for goodness, knowing its far-reaching, blessed impact on our lineage. Mufti Shafi further adds that this also inspires us to show kindness and consideration to the children of the learned and pious.
Allah's Hidden Mercy
Al-Khidr explained that repairing the wall was done because, "فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجا كَنزَهُمَا رَحْمَةًۭ مِّن رَّبِّكَ" (So your Lord willed that they should reach their maturity and extract their treasure, as a mercy from your Lord). This emphasizes Allah's deep, subtle mercy and perfect planning. What might seem like a random event, or even an inconvenience (like a collapsing wall), was part of a larger divine scheme to protect a treasure for the orphans until they were old enough to manage it themselves. Al-Munir notes that this illustrates Allah's kindness, as He often decrees matters that might seem unpleasant to us, yet are ultimately for our greater good, whether in our spiritual or worldly life.
Furthermore, al-Khidr's concluding statement, "وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى" (And I did not do it of my own accord), reminds us that these were not his personal decisions but divine commands and inspirations. This teaches us humility before Allah's wisdom; there are dimensions of reality and future consequences that are beyond our human perception and immediate understanding. The purpose of these stories is to cultivate a deep trust in Allah's decrees and to remind us that even when events seem confusing or unjust, there is a profound, often hidden, mercy and wisdom at work.
Etiquette with the Divine
Al-Qurtubi points out a beautiful lesson in *adab* (etiquette) with Allah in al-Khidr's varying attribution of actions. When he "damaged" the boat, he said "I intended" (فَأَرَدتُ), taking responsibility for the apparent "flaw." When he "killed" the boy (an action with mixed outcomes), he said "we intended" (فَأَرَدْنَا), implying shared divine will. But for the purely beneficial act of preserving the treasure for the orphans, he said "Your Lord willed" (فَأَرَادَ رَبُّكَ), attributing the complete good directly to Allah. This teaches us a delicate manner of speech: to always attribute good and blessings directly to Allah, while being mindful not to attribute apparent harm or deficiency to Him in a way that might imply imperfection, even though all things ultimately occur by His decree.
Sources: al-Qurtubi (al-Jami li-Ahkam), al-Saadi (Taysir al-Karim), Ma'arif al-Quran (Mufti Shafi), Ibn al-Jawzi (Zad al-Masir), al-Munir (Wahba al-Zuhayli)
Topics that discuss this verse
Surah Al-Kahf 18:82 is discussed in 16 study guides on Maani. Each guide gathers the key verses, Arabic words and lessons of one Quranic topic.
Reflect on this verse
Open Surah Al-Kahf 18:82 in Maani to reflect on it through the Five Lenses: its wording, its context, what it means for you, its connections across the Quran and its lessons, grounded in classical tafsir.