By Dr. Malik Sherjeel Awan, PsyD
Published by Dr. Malik Sherjeel Awan, Makkah
Surah al-Kahf holds several stories. One is the People of the Cave. Another is a journey taken by one of the greatest prophets, Musa, to learn from a servant of Allah known as al-Khidr.
It’s a short story with three strange events. It’s also one of the Qur’an’s deepest lessons on the limits of human knowledge.
Why the journey began
The Qur’an begins with Musa’s determination: “I will not cease [traveling] until I reach the junction of the two seas or continue for a long period” (18:60).
Sahih al-Bukhari 122 explains why. The Prophet ﷺ said that Musa once addressed his people and was asked who was the most learned person. He said, “I am the most learned.” Allah admonished him “as he did not attribute absolute knowledge to Him”, and told him: “At the junction of the two seas there is a slave amongst my slaves who is more learned than you.”
So Musa set out, a great prophet, to become a student again.
Lesson: even the best of people can learn humility. Musa didn’t argue. He packed for the journey.
The fish and the meeting place
Musa was told to carry a fish in a basket. He would find the man where the fish was lost. Musa travelled with his young servant, named in the hadith as Yusha’ bin Nun. At a rock they slept, and the fish slipped into the sea “as in a tunnel”. The servant forgot to mention it until the next day. Musa said, “That is what we have been seeking,” and they retraced their steps (Sahih al-Bukhari 122; also 3401).
There they found “a servant from among Our servants to whom We had given mercy from Us and had taught him from Us a [certain] knowledge” (18:65).
The conditions
Musa asks politely: “May I follow you on [the condition] that you teach me from what you have been taught of sound judgement?” (18:66).
Khidr answers honestly: “Indeed, with me you will never be able to have patience. And how can you have patience for what you do not encompass in knowledge?” (18:67–68).
Musa promises: “You will find me, if Allah wills, patient, and I will not disobey you in [any] order” (18:69). The single condition: don’t ask about anything until I explain it (18:70).
In the hadith, Khidr adds: “I have some of the knowledge of Allah which He has taught me and which you do not know, while you have some knowledge which Allah has taught you which I do not know.” Each had knowledge the other lacked.
The sparrow
On board a boat, a sparrow dips its beak into the sea. Khidr says: “My knowledge and your knowledge have not decreased Allah’s knowledge except as much as this sparrow has decreased the water of the sea with its beak” (Sahih al-Bukhari 122).
It may be the most humbling image in the whole story.
Three events
1. The boat. The crew carried them for free. Khidr pulled out one of its planks. Musa protested: “Have you torn it open to drown its people?” (18:71). Reminded of his promise, he apologised: “Do not blame me for what I forgot” (18:73). The hadith says this first objection was out of forgetfulness.
2. The boy. Khidr killed a boy. Musa was shocked: “Have you killed a pure soul for other than [having killed] a soul? You have certainly done a deplorable thing” (18:74). This time Musa said that if he asked again, they should part (18:76).
3. The wall. In a town that refused them food, Khidr rebuilt a wall that was about to collapse. Musa said: “If you wished, you could have taken for it a payment” (18:77). Khidr replied: “This is parting between me and you” (18:78).
The explanations
Then Khidr explained:
- The boat belonged to poor people working at sea. A king was seizing every good ship by force, so the defect saved their boat (18:79).
- The boy: his parents were believers, and it was feared that he would burden them with transgression and disbelief. Khidr says they intended that their Lord would give the parents a child “better than him in purity and nearer to mercy” (18:80–81).
- The wall belonged to two orphans. Under it was their treasure, and “their father had been righteous”. It was rebuilt so they could reach maturity and take it, “as a mercy from your Lord” (18:82).
And the key line: “And I did it not of my own accord” (18:82). Khidr acted by Allah’s command.
An important note
Khidr’s actions were by direct command from Allah, which is unique to this story. They are not a model for anyone to copy. Nobody may harm a person or damage property on the basis of a dream, a feeling or claimed “hidden knowledge”. Islamic law, and ordinary law, apply to all of us. The story teaches humility before Allah’s wisdom. It doesn’t give anyone permission to act outside the law.
What scholars say about Khidr
The Qur’an doesn’t name him. The name al-Khidr comes from the hadith. It describes him only as a servant given mercy and knowledge (18:65). Scholars have long differed on details, such as whether he was a prophet. This post doesn’t take a side on those questions. The lessons don’t depend on them.
Lessons for the heart
Our knowledge is a sparrow’s beakful. We often judge events, and even Allah’s decree, by the little we can see.
Hidden mercy. A damaged boat, a loss and an unpaid act of kindness all turned out to hold mercy. Many people look back on a hard event years later and see some good in it. Others never see it in this life. The story asks us to trust that Allah’s wisdom is there either way.
A psychologist’s note: this isn’t a call to deny pain. Musa’s objections were honest and came from his sense of right and wrong, and the Qur’an records them without blame. Patience here means we keep trusting Allah while we feel confused. It doesn’t mean pretending we aren’t confused.
Adab with knowledge. Musa asked permission, accepted conditions and apologised when he slipped. These are the manners of a true student. See the etiquette of seeking knowledge.
The father’s righteousness. The orphans were protected partly because “their father had been righteous” (18:82). Our good deeds may help our children in ways we never see.
The Prophet ﷺ ended the story: “May Allah be Merciful to Moses! Would that he could have been more patient to learn more about his story with Al-Khadir” (Sahih al-Bukhari 122).
FAQ
Where is the story of Musa and Khidr in the Qur’an?
Surah al-Kahf, 18:60–82.
Was the Musa in this story the Prophet Musa?
Yes. In Sahih al-Bukhari 122, Ibn ‘Abbas rejects the claim that it was another Musa, and Khidr asks him, “The Moses of Bani Israel?”
Was Khidr a prophet?
Scholars differ. The Qur’an describes him as a servant given mercy and knowledge from Allah (18:65).
Related reading
Qur’an translations are from Sahih International (quran.com). Hadith are from Sahih al-Bukhari, checked word for word on sunnah.com on 21 November 2026.
Sources
- Qur’an 18:60, 18:65–82 (Sahih International via quran.com, checked 21 Nov 2026): https://quran.com/18/60-82
- Hadith: Sahih al-Bukhari 122 (Musa, Khidr, the sparrow) https://sunnah.com/bukhari:122
- Hadith: Sahih al-Bukhari 3401 (same narration, longer wording) https://sunnah.com/bukhari:3401
