Sabeel
← All stories

A story from the Quran

The People of the Cave

أصحاب الكهف

Young men who walked away rather than pretend, and woke up three centuries later

About 6 minNo prior knowledge needed

Imagine your city has turned against what you believe. You could stay and pretend. Everyone would be more comfortable. Instead, a handful of young men walk out — not to fight anyone, just to leave — and take shelter in a cave. They fall asleep. When they wake, everyone they knew has been dead for centuries.

Why this matters

The Quran describes them simply as youths who believed. If you are young, or new to Islam, or feel like the only person around you who takes this seriously, this story was told for you.

What you’ll learn

  • Why the Quran emphasises that they were young
  • That leaving a hostile situation can be the right choice, not a cowardly one
  • Why the Quran refuses to say how many of them there were
  • What they worried about first when they woke up

Sabeel — educational summary

Surah Al-Kahf (18), verses 9–26. · Translation by Saheeh International.

Where this happened

The Quran never says where the cave was, and it explicitly warns against disputing the details of this story — including how many of them there were. Sabeel will not plot a location the Quran deliberately withheld.

Part 1 of 5

A sign worth thinking about

The Quran introduces them almost as a question — as if to say: you think this is remarkable? Consider what else Allah does. Then it tells us what happened in the cave.

Sabeel — setting the scene

Now read what Allah says · Al-Kahf 18:9–12

Quran

أَمْ حَسِبْتَ أَنَّ أَصْحَـٰبَ ٱلْكَهْفِ وَٱلرَّقِيمِ كَانُوا۟ مِنْ ءَايَـٰتِنَا عَجَبًا

Or have you thought that the companions of the cave and the inscription were, among Our signs, a wonder?

Reference · Quran 18:9 — translation by Saheeh International

Quran

إِذْ أَوَى ٱلْفِتْيَةُ إِلَى ٱلْكَهْفِ فَقَالُوا۟ رَبَّنَآ ءَاتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا

[Mention] when the youths retreated to the cave and said, "Our Lord, grant us from Yourself mercy and prepare for us from our affair right guidance."

Reference · Quran 18:10 — translation by Saheeh International

Quran

فَضَرَبْنَا عَلَىٰٓ ءَاذَانِهِمْ فِى ٱلْكَهْفِ سِنِينَ عَدَدًا

So We cast [a cover of sleep] over their ears within the cave for a number of years.

Reference · Quran 18:11 — translation by Saheeh International

Quran

ثُمَّ بَعَثْنَـٰهُمْ لِنَعْلَمَ أَىُّ ٱلْحِزْبَيْنِ أَحْصَىٰ لِمَا لَبِثُوٓا۟ أَمَدًا

Then We awakened them that We might show which of the two factions was most precise in calculating what [extent] they had remained in time.

Reference · Quran 18:12 — translation by Saheeh International

What this is saying

They asked for mercy and for their affair to be set right. That is the whole of their plan — they did not have a strategy, they had a supplication. And the Quran says Allah covered their ears in the cave for a number of years.

Sabeel — educational summary

Part 2 of 5

What they said before they left

They stood up and stated what they believed, knowing it would cost them. Then they reasoned among themselves about what to do next.

Sabeel — setting the scene

Now read what Allah says · Al-Kahf 18:13–16

Quran

نَّحْنُ نَقُصُّ عَلَيْكَ نَبَأَهُم بِٱلْحَقِّ ۚ إِنَّهُمْ فِتْيَةٌ ءَامَنُوا۟ بِرَبِّهِمْ وَزِدْنَـٰهُمْ هُدًى

It is We who relate to you, [O Muḥammad], their story in truth. Indeed, they were youths who believed in their Lord, and We increased them in guidance.

Reference · Quran 18:13 — translation by Saheeh International

Quran

وَرَبَطْنَا عَلَىٰ قُلُوبِهِمْ إِذْ قَامُوا۟ فَقَالُوا۟ رَبُّنَا رَبُّ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضِ لَن نَّدْعُوَا۟ مِن دُونِهِۦٓ إِلَـٰهًا ۖ لَّقَدْ قُلْنَآ إِذًا شَطَطًا

And We bound [i.e., made firm] their hearts when they stood up and said, "Our Lord is the Lord of the heavens and the earth. Never will we invoke besides Him any deity. We would have certainly spoken, then, an excessive transgression.

Reference · Quran 18:14 — translation by Saheeh International

Quran

هَـٰٓؤُلَآءِ قَوْمُنَا ٱتَّخَذُوا۟ مِن دُونِهِۦٓ ءَالِهَةً ۖ لَّوْلَا يَأْتُونَ عَلَيْهِم بِسُلْطَـٰنٍۭ بَيِّنٍ ۖ فَمَنْ أَظْلَمُ مِمَّنِ ٱفْتَرَىٰ عَلَى ٱللَّهِ كَذِبًا

These, our people, have taken besides Him deities. Why do they not bring for [worship of] them a clear evidence? And who is more unjust than one who invents about Allāh a lie?"

Reference · Quran 18:15 — translation by Saheeh International

Quran

وَإِذِ ٱعْتَزَلْتُمُوهُمْ وَمَا يَعْبُدُونَ إِلَّا ٱللَّهَ فَأْوُۥٓا۟ إِلَى ٱلْكَهْفِ يَنشُرْ لَكُمْ رَبُّكُم مِّن رَّحْمَتِهِۦ وَيُهَيِّئْ لَكُم مِّنْ أَمْرِكُم مِّرْفَقًا

[The youths said to one another], "And when you have withdrawn from them and that which they worship other than Allāh, retreat to the cave. Your Lord will spread out for you of His mercy and will prepare for you from your affair facility."

Reference · Quran 18:16 — translation by Saheeh International

What this is saying

The Quran says plainly that they were youths who believed, and that Allah increased them in guidance. Their belief came first; the increase came after. They then decided to withdraw to the cave rather than stay and pretend. Leaving was a considered decision, not a panic.

Sabeel — educational summary

Part 3 of 5

The long sleep

The description of them asleep is unexpectedly gentle — the sun moving around the cave, their bodies being turned, a dog at the entrance.

Sabeel — setting the scene

Now read what Allah says · Al-Kahf 18:17–18

Quran

۞ وَتَرَى ٱلشَّمْسَ إِذَا طَلَعَت تَّزَٰوَرُ عَن كَهْفِهِمْ ذَاتَ ٱلْيَمِينِ وَإِذَا غَرَبَت تَّقْرِضُهُمْ ذَاتَ ٱلشِّمَالِ وَهُمْ فِى فَجْوَةٍ مِّنْهُ ۚ ذَٰلِكَ مِنْ ءَايَـٰتِ ٱللَّهِ ۗ مَن يَهْدِ ٱللَّهُ فَهُوَ ٱلْمُهْتَدِ ۖ وَمَن يُضْلِلْ فَلَن تَجِدَ لَهُۥ وَلِيًّا مُّرْشِدًا

And [had you been present], you would see the sun when it rose, inclining away from their cave on the right, and when it set, passing away from them on the left, while they were [lying] within an open space thereof. That was from the signs of Allāh. He whom Allāh guides is the [rightly] guided, but he whom He sends astray - never will you find for him a protecting guide.

Reference · Quran 18:17 — translation by Saheeh International

Quran

وَتَحْسَبُهُمْ أَيْقَاظًا وَهُمْ رُقُودٌ ۚ وَنُقَلِّبُهُمْ ذَاتَ ٱلْيَمِينِ وَذَاتَ ٱلشِّمَالِ ۖ وَكَلْبُهُم بَـٰسِطٌ ذِرَاعَيْهِ بِٱلْوَصِيدِ ۚ لَوِ ٱطَّلَعْتَ عَلَيْهِمْ لَوَلَّيْتَ مِنْهُمْ فِرَارًا وَلَمُلِئْتَ مِنْهُمْ رُعْبًا

And you would think them awake, while they were asleep. And We turned them to the right and to the left, while their dog stretched his forelegs at the entrance. If you had looked at them, you would have turned from them in flight and been filled by them with terror.

Reference · Quran 18:18 — translation by Saheeh International

What this is saying

The detail here is almost tender. They were being looked after in a way they knew nothing about, for centuries. It is a quiet picture of care continuing while the people receiving it are completely unaware of it.

Sabeel — educational summary

Part 4 of 5

Waking into a different world

They wake up assuming they have slept a day or less. One of them is sent into the city with their old money to buy food — and the money is centuries out of date.

Sabeel — setting the scene

Now read what Allah says · Al-Kahf 18:19–21

Quran

وَكَذَٰلِكَ بَعَثْنَـٰهُمْ لِيَتَسَآءَلُوا۟ بَيْنَهُمْ ۚ قَالَ قَآئِلٌ مِّنْهُمْ كَمْ لَبِثْتُمْ ۖ قَالُوا۟ لَبِثْنَا يَوْمًا أَوْ بَعْضَ يَوْمٍ ۚ قَالُوا۟ رَبُّكُمْ أَعْلَمُ بِمَا لَبِثْتُمْ فَٱبْعَثُوٓا۟ أَحَدَكُم بِوَرِقِكُمْ هَـٰذِهِۦٓ إِلَى ٱلْمَدِينَةِ فَلْيَنظُرْ أَيُّهَآ أَزْكَىٰ طَعَامًا فَلْيَأْتِكُم بِرِزْقٍ مِّنْهُ وَلْيَتَلَطَّفْ وَلَا يُشْعِرَنَّ بِكُمْ أَحَدًا

And similarly, We awakened them that they might question one another. Said a speaker from among them, "How long have you remained [here]?" They said, "We have remained a day or part of a day." They said, "Your Lord is most knowing of how long you remained. So send one of you with this silver coin of yours to the city and let him look to which is the best of food and bring you provision from it and let him be cautious. And let no one be aware of you.

Reference · Quran 18:19 — translation by Saheeh International

Quran

إِنَّهُمْ إِن يَظْهَرُوا۟ عَلَيْكُمْ يَرْجُمُوكُمْ أَوْ يُعِيدُوكُمْ فِى مِلَّتِهِمْ وَلَن تُفْلِحُوٓا۟ إِذًا أَبَدًا

Indeed, if they come to know of you, they will stone you or return you to their religion. And never would you succeed, then - ever."

Reference · Quran 18:20 — translation by Saheeh International

Quran

وَكَذَٰلِكَ أَعْثَرْنَا عَلَيْهِمْ لِيَعْلَمُوٓا۟ أَنَّ وَعْدَ ٱللَّهِ حَقٌّ وَأَنَّ ٱلسَّاعَةَ لَا رَيْبَ فِيهَآ إِذْ يَتَنَـٰزَعُونَ بَيْنَهُمْ أَمْرَهُمْ ۖ فَقَالُوا۟ ٱبْنُوا۟ عَلَيْهِم بُنْيَـٰنًا ۖ رَّبُّهُمْ أَعْلَمُ بِهِمْ ۚ قَالَ ٱلَّذِينَ غَلَبُوا۟ عَلَىٰٓ أَمْرِهِمْ لَنَتَّخِذَنَّ عَلَيْهِم مَّسْجِدًا

And similarly, We caused them to be found that they [who found them] would know that the promise of Allāh is truth and that of the Hour there is no doubt. [That was] when they disputed among themselves about their affair and [then] said, "Construct over them a structure. Their Lord is most knowing about them." Said those who prevailed in the matter, "We will surely take [for ourselves] over them a masjid."

Reference · Quran 18:21 — translation by Saheeh International

What this is saying

Notice what they thought about first on waking: they told the one going into the city to look for the purest food, and to be careful. Three hundred years had passed and their first concern was whether the food was good and whether they would be safe. The small habits held their shape.

Sabeel — educational summary

Part 5 of 5

How many were they?

People afterwards argued about the number of the sleepers. The Quran addresses the argument directly — and refuses to settle it.

Sabeel — setting the scene

Now read what Allah says · Al-Kahf 18:22–26

Quran

سَيَقُولُونَ ثَلَـٰثَةٌ رَّابِعُهُمْ كَلْبُهُمْ وَيَقُولُونَ خَمْسَةٌ سَادِسُهُمْ كَلْبُهُمْ رَجْمًۢا بِٱلْغَيْبِ ۖ وَيَقُولُونَ سَبْعَةٌ وَثَامِنُهُمْ كَلْبُهُمْ ۚ قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌ ۗ فَلَا تُمَارِ فِيهِمْ إِلَّا مِرَآءً ظَـٰهِرًا وَلَا تَسْتَفْتِ فِيهِم مِّنْهُمْ أَحَدًا

They [i.e., people] will say there were three, the fourth of them being their dog; and they will say there were five, the sixth of them being their dog - guessing at the unseen; and they will say there were seven, and the eighth of them was their dog. Say, [O Muḥammad], "My Lord is most knowing of their number. None knows them except a few. So do not argue about them except with an obvious argument and do not inquire about them among [the speculators] from anyone."

Reference · Quran 18:22 — translation by Saheeh International

Quran

وَلَا تَقُولَنَّ لِشَا۟ىْءٍ إِنِّى فَاعِلٌ ذَٰلِكَ غَدًا

And never say of anything, "Indeed, I will do that tomorrow,"

Reference · Quran 18:23 — translation by Saheeh International

Quran

إِلَّآ أَن يَشَآءَ ٱللَّهُ ۚ وَٱذْكُر رَّبَّكَ إِذَا نَسِيتَ وَقُلْ عَسَىٰٓ أَن يَهْدِيَنِ رَبِّى لِأَقْرَبَ مِنْ هَـٰذَا رَشَدًا

Except [when adding], "If Allāh wills." And remember your Lord when you forget [it] and say, "Perhaps my Lord will guide me to what is nearer than this to right conduct."

Reference · Quran 18:24 — translation by Saheeh International

Quran

وَلَبِثُوا۟ فِى كَهْفِهِمْ ثَلَـٰثَ مِا۟ئَةٍ سِنِينَ وَٱزْدَادُوا۟ تِسْعًا

And they remained in their cave for three hundred years and exceeded by nine.

Reference · Quran 18:25 — translation by Saheeh International

Quran

قُلِ ٱللَّهُ أَعْلَمُ بِمَا لَبِثُوا۟ ۖ لَهُۥ غَيْبُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضِ ۖ أَبْصِرْ بِهِۦ وَأَسْمِعْ ۚ مَا لَهُم مِّن دُونِهِۦ مِن وَلِىٍّ وَلَا يُشْرِكُ فِى حُكْمِهِۦٓ أَحَدًا

Say, "Allāh is most knowing of how long they remained. He has [knowledge of] the unseen [aspects] of the heavens and the earth. How Seeing is He and how Hearing! They have not besides Him any protector, and He shares not His legislation with anyone."

Reference · Quran 18:26 — translation by Saheeh International

What this is saying

It says some say three, some say five, some say seven — and instructs not to dispute about them except with an obvious argument, and not to ask anyone for a ruling about them. The refusal is the teaching. Some questions do not change anything, and the Quran declines to feed the argument. That is a direct instruction about which questions are worth your energy.

Sabeel — educational summary

What this teaches me about Allah

They made one supplication — for mercy and for their affair to be set right — and Allah handled three hundred years of it while they slept. Care continued long after they stopped being able to do anything about their own situation.

Sabeel — educational summary

What can we learn?

  • They were young, and the Quran says so deliberately. Youth is not treated as a reason to be taken less seriously.
  • Walking away from a hostile situation was the right choice here. Distance can protect belief where confrontation would not.
  • The Quran refuses to settle how many they were, and warns against arguing about it.
  • Their first thought on waking was lawful food and personal safety. Ordinary care did not disappear in an extraordinary situation.

Character to develop

  • Conviction without aggression
  • Knowing when to withdraw
  • Restraint in argument

Sabeel — educational summary

Sit with this

No right answers. These are for you, not for anyone else.

  • Have you ever felt like the only person around you who takes belief seriously?
  • Is there an argument you keep having that would change nothing even if you won it?
  • Is there a situation you should step away from rather than keep fighting?

Write it down

Anything from The People of the Cave you want to keep. It saves to your journal, on this device only.

Stays on this device

One thing you can do today

Pick one argument — online or in person — that you have been drawn into and that would change nothing. Leave it today, without needing the last word.

Dua: Seeking refuge

This story speaks to

  • Feeling alone
  • Fear
  • Doubt
  • Patience