
The Story of Khidr and Musa in the Quran’s Surah Al-Kahf
Follow Quran 18:60–82 to see how the hadith identifies Khidr and why the boat, the boy and the wall each receive an explanation at the end.
In Surah Al-Kahf 18:60–82, Musa, or Moses, travels to meet a servant whom God has given mercy and taught knowledge. The Quran calls him a servant and gives no personal name. Sahih al-Bukhari 4725 identifies him as Al-Khadir, also written Khidr or Khizar. During their journey he damages a boat, kills a boy and repairs a wall. Musa objects or comments each time. In the final verses, the servant explains what Musa could not see at the time and says he acted under a command beyond his own.
The passage first tells the events in the order Musa experiences them, then revisits them in the same order with details he did not have. The complete Arabic passage with audio and translations is useful to keep open. In a reference such as 18:71, 18 is the chapter and 71 is the verse. The guide to chapters and verses explains this notation if you are following along in a printed Quran.
Where Musa goes and how the servant is identified
Musa tells his young companion that he intends to reach the meeting place of the two seas. At the junction they lose their fish, which makes its way into the sea. After going farther, Musa asks for their meal. His companion remembers the fish at the rock and tells him what happened. Musa recognises the place as what they were seeking, and they go back along their own tracks. The passage gives the rock and the moving fish as signs within the story, without naming the two bodies of water or giving a location that can be plotted on a modern map.
In 18:65 the man they find is introduced as عَبْدًا مِّنْ عِبَادِنَا, a servant among God’s servants. The verse says that God gave him mercy and taught him knowledge. In Al-Qurtubi’s commentary on 18:65, the identification as Khidr rests on the transmitted reports. The name is therefore well established in the reading tradition, and the wording of the verse remains more concise.
In Sahih al-Bukhari 4725, Ubayy ibn Kaʿb reports what the Prophet said about the encounter. The report names the servant Al-Khadir and identifies Musa’s young companion as Yushaʿ ibn Nun. It also adds the background to the search. Musa was asked about knowledge, and God directed him to meet a servant who knew things Musa did not. The fish tells them where to look in this account. To find the same report in a different numbering system, compare the collection, book and chapter heading. The guide to the six Sunni hadith collections shows how those fields work.
Commentators also debated the servant’s status. Al-Qurtubi reads the hidden knowledge behind his actions as evidence of prophethood and records other views. The Jalalayn commentary at 18:65 presents more than one explanation for the mercy in the verse, including prophethood and a form of authority. The Quran’s wording gives the basis for that discussion: a servant received mercy and knowledge from God. The name supplied by the hadith and the assessment of prophethood in commentary answer separate questions.
The agreement before the three events
In 18:66–70, Musa asks permission to follow the servant so he can learn from what the servant was taught. The servant says Musa will struggle to be patient with things he has yet to understand. Musa answers that, God willing, he will be patient. The servant asks him to hold his questions until he himself gives an explanation. The agreement is about this journey and the timing of the answers. It tells the reader to watch for information that will arrive only after the encounters.
Notice the difference between an event and its explanation on a first reading. The question Musa asks on the boat concerns the safety of its passengers. At the second event, he reacts to a death. At the wall, he raises the possibility of a payment after a town has refused them hospitality. The scale and nature of his responses vary. The three scenes have the same sequence of an action followed by a response, while the terms of the agreement are tested by three very different situations.
The boat belonging to people who worked at sea
In 18:71–73 the two board a boat and the servant damages it. Musa protests because the damage could cause those aboard to drown. The servant brings up their agreement, and Musa asks that his lapse be excused. From what Musa has seen, damage to a working vessel is a reason to be alarmed. The story then moves on and leaves the explanation open.
When the servant returns to the incident in 18:79, he describes the owners as poor people who worked at sea. A king was taking boats by force. Ibn Kathir explains the boat’s defect as the reason the king would pass it over, leaving its owners able to benefit from it. The verse names the seizure and the reason for the defect. The commentary makes explicit the inference about the king passing over a damaged vessel. The relevant detail was beyond what Musa could see from inside the boat.
The boy and Musa’s strongest objection
In 18:74–76 the servant kills a boy. Musa objects to the taking of a life that, from what he could see, had taken no other life. The servant repeats that Musa would struggle to be patient. Musa then says the servant can end their companionship if he questions him again. Reading this exchange in order preserves the concern voiced in Musa’s objection and explains why a later comment about the wall leads to parting.
Verses 18:80–81 give the servant’s explanation. The parents were believers. The servant speaks of the fear that the boy would overwhelm them with defiance and unbelief, and of the wish that their Lord give them a child of greater purity and closer affection. The account places this explanation within knowledge given for a particular episode. A person’s predictions about someone else’s future cannot provide the knowledge or authority described here. The closing line in 18:82 is necessary for reading what the servant says about this episode.
The wall and the two orphans’ treasure
In 18:77 the people of a town refuse to offer the travellers hospitality after they ask for food. The servant sees a wall close to collapsing and sets it upright. Musa says he could have taken a payment. This is the third time Musa comments on what happens. In 18:78 the servant announces that they will part and that he will explain what Musa could not bear patiently.
In 18:82 the servant says that the wall belonged to two orphan boys. Their treasure lay beneath it. Their father had been righteous, and God willed that they reach maturity and recover what was theirs. The beneficiaries of the repair were the two orphans. When Musa brought up pay, all he had seen was work done after hospitality was refused. The revelation of the treasure gives the repair a different purpose within the story.
How the final explanation fits the three events
| Event | What Musa sees and says | What the servant explains |
|---|---|---|
| Boat | 18:71–73. The servant damages the boat and Musa fears for those aboard. | 18:79. Poor workers own it, and a king seizes boats by force. |
| Boy | 18:74–76. Musa objects to the taking of a life. | 18:80–81. The servant speaks of the believing parents, the feared burden on them and a hoped-for replacement. |
| Wall | 18:77–78. A town refuses hospitality, the servant repairs a wall and Musa mentions payment. | 18:82. The wall protects treasure belonging to two orphans until they can retrieve it. |
At the close the servant says وَمَا فَعَلْتُهُ عَنْ أَمْرِي, meaning that he did not act on his own initiative. Al-Tabari’s commentary on 18:82 relates the line to all of the acts Musa witnessed and explains them as done at God’s command. That framing belongs beside the details of the boat, the boy and the wall. It also sets a limit on what the passage can be taken to say about ordinary people’s choices.
What the story says about patience and knowledge
The story separates the ability to notice a real danger from the ability to see the whole situation. Musa is alarmed by what he observes, as the dialogue makes clear. The servant has information from God that Musa learns about only later. In the hadith, the image of a sparrow taking water from the sea puts both men’s knowledge in relation to God’s knowledge. That image gives a way to read the passage’s patience as an acknowledgement of limited knowledge. The story records Musa’s objections and gives a particular explanation for each event.
To compare how the Quran brings patience together with mercy and justice elsewhere, see the guide to those passages in context. The guide to Ibrahim’s story across several Quran passages gives a separate example of keeping Quranic wording and later explanation distinct. For Al-Kahf, the simplest reading exercise is to read 18:71–78 once through Musa’s eyes, then match each scene with 18:79–82. That preserves both the force of his questions and the explanation the story gives at parting.





