1. QASAS
  2. Blog

The Story of Musa and al-Khidr for Kids: Three Puzzles and Their Secret

A gentle retelling of Musa and al-Khidr from Surah al-Kahf for children aged 4 to 12, with the moral, three questions to talk about, a sentence to learn and nothing added to the Quran.

By QASAS20 min read

Prophet Musa and al-Khidr aboard a small wooden ship of poor sailors, seen from behind, with the sea and other ships ahead

This is the Musa and Khidr story for kids, told the way the Quran tells it. It is a story about a great prophet who went on a long journey, not to fight anyone, but to learn. On the way he saw three things that looked completely wrong. And at the end he found out that each one was hiding a secret kindness.

Children love this story because it is full of puzzles. A fish jumps into the sea. A teacher makes a hole in a boat. A wall is fixed for people who were not kind. Every time, you can stop and ask your child: "Why do you think he did that?" Then, at the end, the answers come.

The story is in Surah al-Kahf, the surah many families read on Fridays, in ayat 60 to 82. Everything on this page comes from the Quran and from the classical tafsir of al-Tafsir al-Muyassar, Ibn Kathir and al-Sa'di. Where the Quran does not tell us something, we say so and leave it there.

If you want every ayah and the full discussion for adults, including the questions grown-ups ask, read our complete story of Musa and al-Khidr in the Quran. This page is the one to read aloud.

How to use this page

Read the story aloud, one part at a time. The sentences are short on purpose, so you can stop whenever your child wants to ask something. Each ayah box shows the Arabic with its English meaning. Read the English, and if your child is learning Quran, point to the Arabic words.

There is one part of this story, the second puzzle, that is serious. We have told it gently and truthfully. Before you read, look at the guide by age further down: for the youngest children you may choose to tell the ship and the wall first, and add the second puzzle when they are older.

After the story you will find the moral in one sentence, three questions to talk about, a short sentence from the Quran to learn together, and honest answers to the questions children ask most.

The story of Musa and al-Khidr for children

A prophet who wanted to learn

Prophet Musa, peace be upon him, was one of the greatest prophets of Allah. Allah had spoken to him, he had brought his people a message from Allah, and he knew a great deal. You might think a prophet like that would never need a teacher.

But Musa heard that there was a servant of Allah who had knowledge that Musa did not have. And instead of saying "I already know enough", Musa decided to go and find him. Al-Tafsir al-Muyassar explains that Musa set out to reach this righteous servant, to learn from him the knowledge he did not have. Al-Sa'di says this shows how strongly Musa loved goodness and loved to learn.

Musa took a young helper with him and said:

﴿وَإِذْ قَالَ مُوسَىٰ لِفَتَىٰهُ لَآ أَبْرَحُ حَتَّىٰٓ أَبْلُغَ مَجْمَعَ ٱلْبَحْرَيْنِ أَوْ أَمْضِىَ حُقُبًا ٦٠﴾

(60) And [mention] when Moses said to his boy [i.e., servant], "I will not cease [traveling] until I reach the junction of the two seas or continue for a long period."

Surah Al-Kahf (18:60) · Saheeh International

He meant: I will keep walking until I reach the place where the two seas meet, even if it takes a very, very long time. That is how much he wanted to learn!

The fish that slipped into the sea

Musa and his young helper carried a fish with them as food for the journey. Al-Muyassar explains that Musa had been told to take it with him.

They walked and walked until they came to the place where the two seas meet. There they stopped and rested by a big rock. And then something amazing happened that they did not notice at first: the fish came alive, slipped into the sea and made its own path through the water.

﴿فَلَمَّا بَلَغَا مَجْمَعَ بَيْنِهِمَا نَسِيَا حُوتَهُمَا فَٱتَّخَذَ سَبِيلَهُۥ فِى ٱلْبَحْرِ سَرَبًا ٦١﴾

(61) But when they reached the junction between them, they forgot their fish, and it took its course into the sea, slipping away.

Surah Al-Kahf (18:61) · Saheeh International

The two travellers carried on walking. After a while Musa felt tired and hungry, and he said to his helper: “Bring us our morning meal.” (Quran 18:62)

Uh-oh! The helper suddenly remembered. He had forgotten to tell Musa about the fish! He said that the fish had jumped into the sea back at the rock, and that he had forgotten to mention it.

Was Musa upset? No! He said: “That is what we were seeking.” (Quran 18:64) Al-Muyassar explains that the fish was the sign Musa had been given: the place where the fish slipped away was the place where he would find the teacher. So they turned around and walked back, following their own footprints in the sand, all the way to the rock.

Here is a small thing to point out to your child: Musa told his helper that he was tired. Al-Sa'di says it is fine to say we are tired or hungry when it is true and we are not complaining.

Meeting the teacher

At the rock, they found him. The Quran describes him like this:

﴿فَوَجَدَا عَبْدًا مِّنْ عِبَادِنَآ ءَاتَيْنَـٰهُ رَحْمَةً مِّنْ عِندِنَا وَعَلَّمْنَـٰهُ مِن لَّدُنَّا عِلْمًا ٦٥﴾

(65) And they found a servant from among Our servants [i.e., al-Khiḍr] to whom We had given mercy from Us and had taught him from Us a [certain] knowledge.

Surah Al-Kahf (18:65) · Saheeh International

He was a servant of Allah to whom Allah had given mercy and special knowledge. The Quran does not tell us his name, but the scholars of tafsir call him al-Khidr.

Now listen to how politely Musa spoke to him. Musa did not say "Teach me!" He asked:

﴿قَالَ لَهُۥ مُوسَىٰ هَلْ أَتَّبِعُكَ عَلَىٰٓ أَن تُعَلِّمَنِ مِمَّا عُلِّمْتَ رُشْدًا ٦٦﴾

(66) Moses said to him, "May I follow you on [the condition] that you teach me from what you have been taught of sound judgement?"

Surah Al-Kahf (18:66) · Saheeh International

"May I follow you, so that you can teach me?" Ibn Kathir explains that Musa asked gently, without forcing, and he says that this is how a student should speak to a teacher. A great prophet asked a teacher for permission. What beautiful manners!

The promise: no questions

Al-Khidr gave Musa a warning. He said: “Indeed, with me you will never be able to have patience.” (Quran 18:67) And he explained why: “And how can you have patience for what you do not encompass in knowledge?” (Quran 18:68)

In other words: I am going to do things that will look very strange to you, and you will not know the reasons. It is very hard to be patient when you do not understand what is happening.

But Musa really wanted to learn. So he promised: “You will find me, if Allāh wills, patient” (Quran 18:69). Notice that he said "if Allah wills", in sha' Allah. Al-Sa'di says this is one of the lessons of the story: when we promise to do something in the future, we say "in sha' Allah".

Al-Khidr agreed, with one rule: if you follow me, do not ask me about anything until I explain it to you myself. Al-Muyassar explains: do not ask about anything that looks wrong to you until I tell you about it.

So the deal was made. Musa would watch, and wait, and not ask. Do you think he managed it?

Puzzle one: a hole in the ship

Musa and al-Khidr walked along the seashore until a ship came by. Al-Muyassar explains that they asked the sailors to take them on board, and the sailors kindly let them ride for free.

And then, once they were on the ship, al-Khidr pulled out one of its wooden planks and made a hole in it!

Prophet Musa and al-Khidr aboard the poor men's ship as al-Khidr makes a hole in its side, seen from behind
Prophet Musa and al-Khidr aboard the poor men's ship as al-Khidr makes a hole in its side, seen from behind

Musa could not believe his eyes. These kind sailors had given them a free ride, and now their ship had a hole in it! He said:

﴿فَٱنطَلَقَا حَتَّىٰٓ إِذَا رَكِبَا فِى ٱلسَّفِينَةِ خَرَقَهَا ۖ قَالَ أَخَرَقْتَهَا لِتُغْرِقَ أَهْلَهَا لَقَدْ جِئْتَ شَيْـًٔا إِمْرًا ٧١﴾

(71) So they set out, until when they had embarked on the ship, he [i.e., al-Khiḍr] tore it open. [Moses] said, "Have you torn it open to drown its people? You have certainly done a grave thing."

Surah Al-Kahf (18:71) · Saheeh International

Al-Khidr gently reminded him: “Did I not say that with me you would never be able to have patience?” (Quran 18:72)

And Musa said sorry. He said: “Do not blame me for what I forgot” (Quran 18:73). He had simply forgotten his promise. Al-Sa'di explains that a person is not blamed for something they truly forgot. Al-Khidr accepted his apology, and they carried on.

Puzzle two: the boy

They got off the ship and walked along the shore. There they saw a boy playing with other boys, as al-Muyassar describes. And al-Khidr did something very serious: he took the boy's life.

Al-Khidr walking ahead while Prophet Musa reaches out his hand in protest, both seen from behind
Al-Khidr walking ahead while Prophet Musa reaches out his hand in protest, both seen from behind

This time Musa was even more upset, and he was right to be. The boy had not hurt anyone. Musa said that al-Khidr had done “a deplorable thing” (Quran 18:74), which means something very wrong. Al-Sa'di explains that Musa became angry out of zeal for Allah's religion, because a small child who had done nothing wrong had been killed, and that taking a life is one of the very worst things a person can do.

Al-Khidr reminded him again of the promise. And Musa said: if I ask you about anything after this, you do not have to keep me with you any more. He knew this was his last chance.

It is good to pause here with your child. Musa did not understand, and neither do we yet. The answer is coming at the end of the story, and it comes from Allah.

Puzzle three: the wall

They walked on until they came to a town. They were hungry, so they asked the people of the town for some food. And the people said no! They would not give their guests anything to eat.

Then, in that same town, they saw a wall that was leaning over and about to fall down. And what did al-Khidr do? He fixed it! He straightened the wall until it stood up properly. Al-Muyassar describes how he set it straight until it was level.

﴿فَٱنطَلَقَا حَتَّىٰٓ إِذَآ أَتَيَآ أَهْلَ قَرْيَةٍ ٱسْتَطْعَمَآ أَهْلَهَا فَأَبَوْا۟ أَن يُضَيِّفُوهُمَا فَوَجَدَا فِيهَا جِدَارًا يُرِيدُ أَن يَنقَضَّ فَأَقَامَهُۥ ۖ قَالَ لَوْ شِئْتَ لَتَّخَذْتَ عَلَيْهِ أَجْرًا ٧٧﴾

(77) So they set out, until when they came to the people of a town, they asked its people for food, but they refused to offer them hospitality. And they found therein a wall about to collapse, so he [i.e., al-Khiḍr] restored it. [Moses] said, "If you wished, you could have taken for it a payment."

Surah Al-Kahf (18:77) · Saheeh International

Musa said, quite reasonably: you could have asked them to pay you for that! Al-Muyassar explains what Musa meant: with the money, they could have bought the food that the townspeople had refused to give them.

That was the third question. And Musa had promised that if he asked again, they would part.

The secret behind each puzzle

Al-Khidr said: “This is parting between me and you.” (Quran 18:78) But before he left, he told Musa the secret behind each puzzle.

Musa and al-KhidrWatch this story in QASASMusa and al-KhidrThree acts shocked Musa, then al-Khidr revealed the secret.Open on Google Play →

The ship. The ship belonged to poor people who worked on the sea to earn their living. Further along their way there was a king who took every good ship from its owners by force. Al-Muyassar explains that al-Khidr made the ship look damaged so that the king would leave it alone. Ibn Kathir says the aim was to make it look faulty, so that its poor owners could keep it and keep working. A small hole can be fixed. A ship taken by a king is gone forever. The hole saved the ship!

The boy. Al-Khidr explained that the boy's mother and father were believers. Al-Muyassar explains that, in Allah's knowledge, the boy would have grown up to disbelieve, and that if he had lived he would have pulled his loving parents away from their faith. Allah was protecting the parents' faith, which is the most precious thing they had. And Allah would give them another child in his place, one who was better and kinder to them:

﴿فَأَرَدْنَآ أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًا مِّنْهُ زَكَوٰةً وَأَقْرَبَ رُحْمًا ٨١﴾

(81) So we intended that their Lord should substitute for them one better than him in purity and nearer to mercy.

Surah Al-Kahf (18:81) · Saheeh International

Ibn Kathir quotes the early scholar Qatadah: the parents were happy when the boy was born and sad when he died, but if he had stayed, it would have been their ruin. So a believer should accept what Allah decides. Ibn Kathir then reminds us of the ayah that says we may dislike something that is good for us.

The wall. The wall belonged to two orphan boys whose father had died. Under the wall was a treasure that belonged to them. Their father had been a good, righteous man.

﴿وَأَمَّا ٱلْجِدَارُ فَكَانَ لِغُلَـٰمَيْنِ يَتِيمَيْنِ فِى ٱلْمَدِينَةِ وَكَانَ تَحْتَهُۥ كَنزٌ لَّهُمَا وَكَانَ أَبُوهُمَا صَـٰلِحًا فَأَرَادَ رَبُّكَ أَن يَبْلُغَآ أَشُدَّهُمَا وَيَسْتَخْرِجَا كَنزَهُمَا رَحْمَةً مِّن رَّبِّكَ ۚ وَمَا فَعَلْتُهُۥ عَنْ أَمْرِى ۚ ذَٰلِكَ تَأْوِيلُ مَا لَمْ تَسْطِع عَّلَيْهِ صَبْرًا ٨٢﴾

(82) And as for the wall, it belonged to two orphan boys in the city, and there was beneath it a treasure for them, and their father had been righteous. So your Lord intended that they reach maturity and extract their treasure, as a mercy from your Lord. And I did it not of my own accord. That is the interpretation of that about which you could not have patience."

Surah Al-Kahf (18:82) · Saheeh International

So Allah wanted the wall to stand, and the treasure to stay safe beneath it, until the two boys grew up and could take out their own treasure themselves. Al-Muyassar explains that the treasure was gold and silver. And Ibn Kathir says that Allah looked after these children because their father was a good man. Al-Sa'di says the same: Allah protects a good servant in his children.

"I did it not of my own accord"

Then al-Khidr said the most important sentence of the whole story: “And I did it not of my own accord.” (Quran 18:82)

Al-Muyassar explains it: everything you saw me do, Musa, I did not do by myself. I did it by the command of Allah.

That is why nobody can copy what al-Khidr did. He was not guessing, and he was not deciding by himself. Allah had taught him and commanded him. Al-Sa'di explains that in our normal lives we judge by what we can see, and that is exactly what Musa did. Musa was right to object to what looked wrong. What he did not have was the hidden knowledge that Allah had given al-Khidr for these three things.

The moral of the Musa and Khidr story for kids

The moral of the story is: Allah knows what we do not know, so when something happens that we do not understand, we stay patient and trust Allah.

Al-Sa'di explains at the end of his tafsir that Allah showed us these three events as examples of His kindness: some things that people dislike very much are really good for their faith, like the boy, or good for their life, like the ship. When we see that, we can be content with what Allah decides.

Smaller lessons to point out along the way:

Three questions to talk about after the story

Ask these after reading. There are no wrong answers; the point is to talk.

  1. How do you think Musa felt when al-Khidr made a hole in the kind sailors' ship? What would you have said? (Let your child say it was unfair, because it looked unfair. Then ask: what was the secret? Talk about a time something seemed bad at first but turned out well, like a cancelled trip or a rainy day.)
  2. Musa promised not to ask questions, but he forgot. What did he do when he forgot? (He said sorry. Talk about promises: why we say "in sha' Allah", and how to say sorry when we forget, at school or at home.)
  3. Al-Khidr fixed the wall for people who would not give them food. Why do you think he was kind to them anyway? (He was helping the two orphans, and he did it because Allah commanded it. Talk about being kind even when someone was not kind to us, and doing good without waiting for a reward.)

Telling the Musa and Khidr story by age

The facts stay the same for every age; what changes is how much you tell.

Ages 4 to 6. Tell it as a journey with surprises. Start with the long walk and the fish that jumped into the sea, then Musa's polite question to his teacher. Then tell the ship and the wall, each as a puzzle: "Why would anyone make a hole in a boat? Why fix a wall for people who were not kind?" Give the answers straight away. You may leave the second puzzle for when your child is older, and come back to it then. End with: "Allah knows what we do not know."

Ages 7 to 9. Tell all three puzzles. For the boy, keep it short and calm: al-Khidr did something very serious, Musa was right to be upset, and the reason came from Allah: the boy would have pulled his believing parents away from Allah, and Allah gave them a better child instead. Ask all three questions. Talk about promises and patience.

Ages 10 to 12. Read Surah al-Kahf 18:60-82 together and find each scene. Talk about the big sentence in 18:68, that it is hard to be patient with what we do not understand. Make clear that al-Khidr acted only by Allah's command, which is why no one may copy him. Older children can compare this test of Musa with the one in our Prophet Musa story for kids, where he faced Pharaoh and the sea.

For every age: no invented names, no made-up conversations, and no pictures of faces. The Quran's own version already has a long journey, a fish that swims away, a ship, a mystery and a hidden treasure. It does not need extras.

A sentence to learn together

Al-Khidr's last words are short enough for an older child to learn: "Wa ma fa'altuhu 'an amri", which means "And I did it not of my own accord."

Practise it in two halves. First, "wa ma fa'altuhu": "and I did not do it". Then, "'an amri": "by my own decision". Talk about what it means: al-Khidr did these things only because Allah commanded him.

For younger children, learn Musa's words instead: "in sha' Allah", "if Allah wills". Musa said it when he made his promise, and children can say it every time they say "I will", like "I will tidy my room, in sha' Allah".

What the Quran does not tell us (and how to answer)

Children ask great questions, and the honest answer to some of them is "the Quran does not say".

Teaching a child to say "the Quran does not tell us" is a gift. It helps them love the Quran as it is, without stories that were added later.

The story at a glance

PartWhat happensAyat
The journeyMusa sets out to learn, with his young helper18:60
The fishThe fish slips into the sea; they turn back to the rock18:61-64
The teacherThey find al-Khidr; Musa asks politely to learn18:65-66
The promise"You will find me, if Allah wills, patient"18:67-70
The shipAl-Khidr makes a hole; Musa objects and says sorry18:71-73
The boyAl-Khidr takes the boy's life; Musa objects again18:74-76
The wallFixed for free in a town that refused them food18:77
The secretsThe ship saved, the parents protected, the orphans' treasure kept18:78-82

Watch and read Musa and al-Khidr in QASAS

In QASAS, the story "Musa and al-Khidr" follows the ayat of Surah al-Kahf, from the poor men's ship to the moment al-Khidr reveals the secret. Each chapter is tied to its ayah. Children can read it page by page with you, look at the pictures, which show no faces, and then try a short quiz to see what they remember.

It is a calm way to share Islamic stories for kids, especially on a Friday when the family reads Surah al-Kahf: read the episode in the prophet stories app, read this page, ask the three questions and practise "in sha' Allah" together. The same Quran stories app also has the full mushaf with tafsir, prayer times, the qibla, a 3D tasbih and adhkar, all free with no ads and no account.

Good stories to tell next: the Dhul-Qarnayn story for kids, which comes right after this one in Surah al-Kahf, and our Prophet Musa story for kids for the rest of Musa's life.

Frequently asked questions

What is the story of Musa and Khidr for kids in short?

Prophet Musa travelled far to learn from al-Khidr, a servant to whom Allah gave special knowledge, and promised not to ask questions. Al-Khidr made a hole in a ship, took a boy's life and fixed a wall for free, and Musa objected each time. Then al-Khidr explained that each act was a mercy from Allah (18:60-82).

What is the moral of the story of Musa and Khidr?

The moral is that Allah knows what we do not, so we stay patient and trust Him when we do not understand something. Al-Sa'di explains that the three events show Allah's kindness: some things people dislike are really good for their faith or their life.

Why did al-Khidr make a hole in the ship?

He made a hole in the ship to save it. A king ahead was taking every good ship by force, and the ship belonged to poor people who worked on the sea (18:79). Al-Muyassar explains that the damage made the king leave it alone, so the owners could keep it.

How do I explain the boy in the story of Musa and Khidr to a child?

Tell it briefly and calmly, as the Quran does. Al-Khidr acted only by Allah's command (18:82). Al-Muyassar explains the boy would have pulled his believing parents away from their faith, and Allah gave them a better child instead (18:81). For very young children, you may tell this part when they are older.

Why did al-Khidr fix the wall for free?

The wall belonged to two orphan boys, and their treasure was buried under it. Their father had been righteous, so Allah wanted the wall to stand until the boys grew up and could take their treasure out themselves (18:82). Ibn Kathir explains that Allah cared for them because of their father's goodness.

Was al-Khidr a prophet?

The scholars of tafsir have different views. Al-Tafsir al-Muyassar says he was a prophet, while al-Sa'di says he was a righteous servant who was not a prophet. The Quran itself says Allah gave him mercy and knowledge from Him (18:65), and that is enough for children.

What age is the story of Musa and Khidr suitable for?

The story suits children from about age 4, told as a journey with the fish, the ship and the wall. From about 7, add the second puzzle calmly and ask the three questions. Ages 10 to 12 can read Surah al-Kahf 18:60-82 and talk about patience with what we do not understand.

Sources

Quran: Surah al-Kahf 18:60-82 (Uthmani text and Saheeh International translation), with a reference to Surah al-Baqarah 2:216. Tafsir: al-Tafsir al-Muyassar (King Fahd Complex: 18:60-82), Ibn Kathir (18:66, 18:79-82) and al-Sa'di (Taysir al-Karim al-Rahman: 18:60, 18:66-82, including his list of lessons at 18:82).

Updated: · By QASAS

Free · No ads · No account

Watch and read it in QASAS

Free on iPhone and Android. Download QASAS from the App Store or Google Play.

QR code: QASAS on Google PlayScan with your Android phone to install

Watch these stories in the app

Keep reading