Surah Al-Kahf 18:77
سُورَةُ الكَهۡفِ · Meccan · Verse 77 of 110
فَٱنطَلَقَا حَتَّىٰٓ إِذَآ أَتَيَآ أَهْلَ قَرْيَةٍ ٱسْتَطْعَمَآ أَهْلَهَا فَأَبَوْا۟ أَن يُضَيِّفُوهُمَا فَوَجَدَا فِيهَا جِدَارًۭا يُرِيدُ أَن يَنقَضَّ فَأَقَامَهُۥ ۖ قَالَ لَوْ شِئْتَ لَتَّخَذْتَ عَلَيْهِ أَجْرًۭا
Translation
And so they travelled on. Then, when they came to a town and asked the inhabitants for food but were refused hospitality, they saw a wall there that was on the point of falling down and the man repaired it. Moses said, ‘But if you had wished you could have taken payment for doing that.’
English translation: M.A.S. Abdel Haleem.
Meaning and reflection
'So they set out, until when they came to the people of a town and asked them for food, but they refused to host them. There they found a wall about to collapse, and he set it up straight. Musa said: If you had wished, you could have taken a wage for it.' Ibn Ashur and al-Saadi note the third test flips the pattern, after two apparent harms, here is an apparent waste: doing unpaid good for people who had just refused them hospitality. Ask yourself: Musa's objection this time is not 'why the harm?' but 'why the generosity, to those who denied us?' It is the equally human protest against goodness that seems undeserved or unrewarded: why give freely to those who gave me nothing? The story is about to reveal that this 'wasted' kindness was serving a hidden purpose (orphans' inheritance) that had nothing to do with the ungrateful townsfolk. When I withhold good because 'they don't deserve it' or 'I get nothing back', am I, like Musa, missing a hidden purpose that my sense of fairness cannot see?
Grounded in classical tafsir: Ibn Ashur, al-Saadi, al-Biqa'i.
Wording
A Journey of Need and Refusal
This verse takes us further into the journey of Prophet Musa and Al-Khidr. They had just embarked from their previous stop when they arrived at a village. The specific words Allah chooses to describe this encounter offer profound insights into the characters and the events.
The Village's Indifference
Upon reaching the village, the Quran tells us, فٱنطَلَقَا حَتَّىٰٓ إِذَآ أَتَيَآ أَهْلَ قَرْيَةٍ ٱسْتَطْعَمَآ أَهْلَهَا (they set out until, when they came to the people of a town, they asked its people for food). Notice how the phrase "أَهْلَهَا" (its people) is repeated: "they asked *its people* for food." The scholar Ibn Ashur points out that this explicit repetition, instead of simply using a pronoun like "them," serves to intensify the denunciation of their collective meanness. It emphasizes that it was not just a few individuals, but the entire community that failed them. Following this, the verse states, فَأَبَوْا۟ أَن يُضَيِّفُوهُمَا (but they refused to host them). This refusal was a significant breach of an ancient and noble tradition of hospitality, as noted by Ibn Ashur, which was deeply rooted in society since the time of Prophet Ibrahim. Al-Zamakhshari adds that the Prophet Muhammad, peace be upon him, described them as "a mean village."
A Wall with a Will
Despite being turned away, they continued, فَوَجَدَا فِيهَا جِدَارًۭا يُرِيدُ أَن يَنقَضَّ (and found therein a wall about to collapse). The most striking wording here is "يُرِيدُ أَن يَنقَضَّ" (it *wants* to collapse). How can an inanimate wall *want* anything? Scholars like Ibn Ashur, Al-Razi, and Al-Zamakhshari explain this as a beautiful and vivid metaphor (istia'ra). It's a way of describing the wall's imminent collapse, its extreme fragility, as if it has a will to fall down. It wasn't just leaning; it was on the very brink, expressing its "desire" to fall with a powerful, almost human, urgency. Al-Khidr then simply "فَأَقَامَهُۥ" (straightened it). Some traditions even describe him performing a miraculous act, straightening it with a mere touch.
Musa's Gentle Rebuke
Witnessing this, Musa, feeling the pinch of their hunger and the village's lack of generosity, says, لَوْ شِئْتَ لَتَّخَذْتَ عَلَيْهِ أَجْرًۭا (If you wished, you would have taken a payment for it). Ibn Ashur interprets this as a gentle reproach (lawm), not for doing a good deed for free, but for not taking payment when they were in dire need. Musa was essentially asking, "Given that we were denied food and needed resources, why didn't you charge for fixing the wall?" This highlights Musa's concern for their immediate needs and his expectation of some return for their efforts, especially after the villagers' inhospitable behavior.
The careful word choices in this verse paint a clear picture: the harshness of the villagers, the precariousness of the wall, and Musa's very human reaction in a moment of hardship. The Quran's wording invites us to reflect on generosity, our needs, and the subtle ways Allah unfolds His wisdom through the most unexpected events.
Sources: Ibn Ashur (al-Tahrir wa al-Tanwir), al-Razi (Mafatih al-Ghayb), al-Jadwal fi I'rab al-Quran (Mahmud Safi), al-Jalalayn, al-Zamakhshari (al-Kashshaf)
Qur'anic Worlds
Let's journey into Surah Al-Kahf, joining Prophet Musa and the wise al-Khadir on their extraordinary travels, as we reflect on this verse through the lens of Quranic Worlds.
An Unwelcoming Stop
The journey continues for Musa and al-Khadir (peace be upon them both). The Quran recounts, "Then they both set out, until when they came to the people of a town, they asked its people for food, but they refused to host them." (18:77). Here, we enter the world of a past nation. The companions reach a village, which some narrations identify as Antakiah (by Ibn Abbas) or Ailah (by Ibn Sirin), or even a town in al-Andalus (by Abu Hurairah), as noted by Mufti Shafi and al-Baghawi. Regardless of its exact location, its defining characteristic emerges: its people were unwelcoming, refusing to offer hospitality to these weary travelers. Qatadah describes them as "the worst of villages," highlighting their stinginess. This immediately sets a challenging scene, reflecting the conditions and character of communities in the world of past nations.
The Leaning Wall
Despite being denied basic hospitality, a striking event unfolds. They found "a wall within it that was about to collapse." (18:77). The phrase "يريد أن ينقض" literally means "it wants to fall," which may seem unusual for an inanimate object. However, scholars like al-Tabari and al-Razi explain this as a common Arabic idiom. It's a vivid way of saying the wall was in such a state of decay and weakness that it was visibly on the verge of tumbling down, much like we might say a flower "begs for water" when it's drooping. Al-Khadir, without a word, "straightened it" (فأقامه). Some reports say he rebuilt it after demolishing it, while others, like one from Ubayy ibn Ka'b, mention he simply touched it, and it miraculously stood upright. This act of al-Khadir's, a selfless repair in a community that had just denied them food, introduces another layer of mystery and divine wisdom into the scene.
Musa's Persistent Question
Witnessing this, Musa (peace be upon him) could not help but question, "If you wished, you could have taken a wage for it." (18:77). Musa, and by extension, any of us, would naturally wonder why al-Khadir would expend such effort for people who had shown them no kindness, especially when they themselves were hungry. Al-Tabari clarifies that Musa meant taking a wage would have allowed them to buy food, addressing the very hospitality the villagers had refused. Sayyid Qutb points out Musa's repeated struggle to reconcile al-Khadir's actions with the immediate, human logic of the situation. This episode from the "World of Past Nations" serves as a profound lesson in patience, in looking beyond immediate appearances, and in trusting in a higher, unseen wisdom, which al-Khadir is soon to reveal.
Sources: al-Tabari (Jami al-Bayan), Ma'arif al-Quran (Mufti Shafi), al-Baghawi (Maalim al-Tanzil), Sayyid Qutb (Fi Zilal al-Quran), al-Razi (Mafatih al-Ghayb), Ibn Kathir
Topics that discuss this verse
Surah Al-Kahf 18:77 is discussed in 5 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:77 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.