The Story of Musa and al-Khidr in Surah al-Kahf

The Quran6 min read

In Surah al-Kahf, Allah tells how the Prophet Musa, peace be upon him, travelled to meet a servant of His who had knowledge that Musa did not have. Through three events, a ship, a boy and a wall, the story teaches humility in knowledge, patience, and trust that Allah's decree holds wisdom even when it is hidden. The details are in Quran 18:60-82 and in a long hadith narrated by Ubayy ibn Ka'b.

1

Why Musa set out on the journey

Ubayy ibn Ka'b reported from the Prophet ﷺ that Musa once stood among the Children of Israel and was asked which of the people was most knowledgeable. He said: "I am." Allah was displeased with him, because he had not attributed the knowledge to Allah, and revealed that a servant of His at the meeting of the two seas was more knowledgeable than he (Sahih al-Bukhari 122; Sahih Muslim 2380).

Musa asked how he could meet him. He was told to carry a fish in a basket and that the place where he lost the fish would be where the servant was found. Musa set out with his young companion, who is named in the hadith as Yusha ibn Nun, and said that he would not stop until he reached the meeting of the two seas, even if it took years (Quran 18:60). The Quran and the hadith do not name the exact place.

2

The lost fish and the meeting

The two travellers rested near a rock, and the fish came to life and slipped into the sea. The young man forgot to tell Musa, and Satan made him forget to mention it (Quran 18:61-63). After they had gone further and Musa felt tired and asked for food, the young man remembered. Musa said that this was the sign they had been seeking, and they went back along their footsteps (Quran 18:64).

There they found a servant of Allah to whom Allah had given mercy from Himself and taught knowledge from Himself (Quran 18:65). The hadith identifies him as al-Khidr. The Quran does not call him a prophet, and scholars have differed about whether he was a prophet or a righteous servant. Many scholars note that his words "I did it not of my own accord" (Quran 18:82) suggest that he acted by revelation.

3

The condition of patience

Musa asked politely whether he might follow al-Khidr in order to be taught some of the guidance he had been taught. Al-Khidr answered that Musa would not be able to be patient with him, for how could he be patient about what he did not fully understand (Quran 18:66-68). Musa promised to be patient, if Allah willed, and not to disobey him. Al-Khidr set one condition: Musa must not question anything until he himself explained it (Quran 18:69-70).

While they were on the ship, a sparrow came, stood on the edge of the ship and pecked once or twice at the sea. Al-Khidr told Musa that his own knowledge and Musa's knowledge, compared to the knowledge of Allah, were like what the sparrow took from the sea (Sahih al-Bukhari 122).

4

The ship, the boy and the wall

Three events tested Musa's patience. In each, Musa objected, since each one looked wrong:

  • The ship: the people on it had carried them without payment, yet al-Khidr made a hole in it. Musa objected (Quran 18:71-72). Al-Khidr later explained that the ship belonged to poor people who worked at sea, and a king was seizing every sound ship by force, so he damaged it to save it for them (Quran 18:79).
  • The boy: al-Khidr killed a boy, and Musa objected strongly. Al-Khidr explained that the boy's parents were believers, and he feared that the boy would burden them with rebellion and disbelief, so Allah intended to give them a better and more merciful child (Quran 18:74-75, 18:80-81).
  • The wall: in a town whose people refused them hospitality, al-Khidr repaired a wall about to fall. Musa said that he could have taken payment (Quran 18:77). Al-Khidr explained that the wall belonged to two orphan boys, and beneath it was a treasure left by their righteous father. Allah wished them to reach maturity and then take out their treasure as a mercy from Him (Quran 18:82).

After Musa asked a third time, al-Khidr said that this was the parting between them, and then he explained all three events (Quran 18:76-78).

5

Lessons from the story

  • Humility in knowledge. A person with knowledge should attribute it to Allah and know that someone else may know what he does not. Musa, one of the greatest messengers, travelled far to learn.
  • Patience and good manners with a teacher. Musa was reminded that being patient and refraining from objecting is part of seeking knowledge.
  • Hidden wisdom in what appears to be harm. What looked like loss or even cruelty had a purpose that Musa could not see. In life, a believer may face a loss or a delay and not know the good that Allah has placed in it.
  • Allah's decree is just and merciful. Allah took care of the poor owners, of the believing parents and of the orphans.

The Prophet ﷺ said: "May Allah have mercy on Musa. We wish that he had been patient so that more about the two of them would have been told to us" (Sahih al-Bukhari 122).

6

What the story does not mean

The story does not allow anyone to claim secret knowledge that overrides the clear rulings of Islam, or to break the law of Allah on the pretext of hidden wisdom. The actions of al-Khidr were by direct command from Allah. Revelation ended with the Prophet Muhammad ﷺ, and the rules of the Sharia are judged by what is clear. No one may kill, steal or harm others on the basis of an inner claim.

As for whether al-Khidr is alive today, many scholars say that there is no sound evidence for it. The story is told for its lessons and not for debating the details.

Sources

Common questions

Who was al-Khidr?

He is the servant of Allah whom Musa met, to whom Allah gave knowledge from Himself (Quran 18:65). The Quran does not give his name, and the hadith calls him al-Khidr. Scholars differ on whether he was a prophet or a righteous servant.

Why did al-Khidr kill the boy?

He explained that the boy's parents were believers and that the boy would have burdened them with rebellion and disbelief. Allah intended to replace him with a better child (Quran 18:80-81). This was by Allah's command and cannot be used to justify any killing by anyone else.

Why was Musa rebuked at the start of the journey?

When he was asked who was most knowledgeable, he said that he was, and he did not attribute the knowledge to Allah. Allah then informed him that a servant of His had knowledge that he did not (Sahih al-Bukhari 122).

What is the main lesson of the story?

That knowledge belongs to Allah, that a believer should be patient, and that Allah's decrees contain wisdom and mercy even when they are not understood at once.