Stories · Quranic Waqiat
The People of the Cave
The young men of Surah Al-Kahf who fled their people’s gods to a cave, slept there beyond reckoning — the passage itself, 18:9–26, told in full.
THE SHORT ANSWER — The People of the Cave are the young men of Surah Al-Kahf (18:9–26) who fled a people that had taken gods besides Allah, slept in a cave, and woke to ask how long they had stayed — “a day, or part of a day” — where the text gives the stay as three hundred years and nine more.
How this story is sourced
This page is the full telling of the first story surveyed on the Quranic Waqiat pillar, where it stands first among the surah’s four stories, at survey length. Here the whole passage, 18:9–26, is read in the verses’ own order. The Surah Al-Kahf page treats the surah whole — its facts, its stories in outline, and the reports that travel with it — and those reports are weighed there, not here. Commentary enters only in its own name — one observation of Ibn Kathir’s, in the section on the count. The sourcing order is the Stories hub’s: the Qur’an first, and what it leaves unnamed left unnamed.
The question that opens the story
The passage opens with a question put to the Prophet ﷺ that sets the story’s scale: were these people the only wonders among Allah’s signs? The word the translation renders “the plaque” — al-Raqim in the Arabic — is read by the commentators in several ways, as an inscription, a valley, a town; following the pillar, this telling prints the translation’s word and leaves the reading open.
أَمْ حَسِبْتَ أَنَّ أَصْحَٰبَ ٱلْكَهْفِ وَٱلرَّقِيمِ كَانُوا۟ مِنْ ءَايَٰتِنَا عَجَبًا إِذْ أَوَى ٱلْفِتْيَةُ إِلَى ٱلْكَهْفِ فَقَالُوا۟ رَبَّنَآ ءَاتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا
Have you ˹O Prophet˺ thought that the people of the cave and the plaque were ˹the only˺ wonders of Our signs? ˹Remember˺ when those youths took refuge in the cave, and said, “Our Lord! Grant us mercy from Yourself and guide us rightly through our ordeal.”
Qur’an 18:9–10 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/9 · Arabic: Tanzil
The sleep falls in a single clause — “So We caused them to fall into a dead sleep in the cave for many years,” — and the waking is announced in the same breath: “then We raised them so We may show which of the two groups would make a better estimation of the length of their stay.” (18:11–12). The length itself is held back for the close; the prayer’s two requests — mercy, and right guidance — are taken up again in the resolve of 18:16.
The surah frames its own telling
Before the detail, the surah gives the telling its own warranty, and its subjects their one description:
نَّحْنُ نَقُصُّ عَلَيْكَ نَبَأَهُم بِٱلْحَقِّ إِنَّهُمْ فِتْيَةٌ ءَامَنُوا۟ بِرَبِّهِمْ وَزِدْنَٰهُمْ هُدًى وَرَبَطْنَا عَلَىٰ قُلُوبِهِمْ إِذْ قَامُوا۟ فَقَالُوا۟ رَبُّنَا رَبُّ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ لَن نَّدْعُوَا۟ مِن دُونِهِۦٓ إِلَٰهًا لَّقَدْ قُلْنَآ إِذًا شَطَطًا هَٰٓؤُلَآءِ قَوْمُنَا ٱتَّخَذُوا۟ مِن دُونِهِۦٓ ءَالِهَةً لَّوْلَا يَأْتُونَ عَلَيْهِم بِسُلْطَٰنٍۭ بَيِّنٍ فَمَنْ أَظْلَمُ مِمَّنِ ٱفْتَرَىٰ عَلَى ٱللَّهِ كَذِبًا وَإِذِ ٱعْتَزَلْتُمُوهُمْ وَمَا يَعْبُدُونَ إِلَّا ٱللَّهَ فَأْوُۥٓا۟ إِلَى ٱلْكَهْفِ يَنشُرْ لَكُمْ رَبُّكُم مِّن رَّحْمَتِهِۦ وَيُهَيِّئْ لَكُم مِّنْ أَمْرِكُم مِّرْفَقًا
We relate to you ˹O Prophet˺ their story in truth. They were youths who truly believed in their Lord, and We increased them in guidance. And We strengthened their hearts when they stood up and declared, “Our Lord is the Lord of the heavens and the earth. We will never call upon any god besides Him, or we would truly be uttering an outrageous lie.” ˹Then they said to one another,˺ “These people of ours have taken gods besides Him. Why do they not produce a clear proof of them? Who then does more wrong than those who fabricate lies against Allah? Since you have distanced yourselves from them and what they worship besides Allah, take refuge in the cave. Your Lord will extend His mercy to you and accommodate you in your ordeal.”
Qur’an 18:13–16 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/13 · Arabic: Tanzil
The stand is public: strengthened hearts, a declaration spoken standing, and a challenge — let their people produce a clear proof of their gods. The resolve’s words answer the prayer’s: mercy extended, their affair accommodated. No scene of the flight is given — no road, no pursuit, no farewells.
The sun passes the cave mouth
Inside the sleep, the passage describes one thing only: the light at the cave’s mouth.
وَتَرَى ٱلشَّمْسَ إِذَا طَلَعَت تَّزَٰوَرُ عَن كَهْفِهِمْ ذَاتَ ٱلْيَمِينِ وَإِذَا غَرَبَت تَّقْرِضُهُمْ ذَاتَ ٱلشِّمَالِ وَهُمْ فِى فَجْوَةٍ مِّنْهُ ذَٰلِكَ مِنْ ءَايَٰتِ ٱللَّهِ مَن يَهْدِ ٱللَّهُ فَهُوَ ٱلْمُهْتَدِ وَمَن يُضْلِلْ فَلَن تَجِدَ لَهُۥ وَلِيًّا مُّرْشِدًا وَتَحْسَبُهُمْ أَيْقَاظًا وَهُمْ رُقُودٌ وَنُقَلِّبُهُمْ ذَاتَ ٱلْيَمِينِ وَذَاتَ ٱلشِّمَالِ وَكَلْبُهُم بَٰسِطٌ ذِرَاعَيْهِ بِٱلْوَصِيدِ لَوِ ٱطَّلَعْتَ عَلَيْهِمْ لَوَلَّيْتَ مِنْهُمْ فِرَارًا وَلَمُلِئْتَ مِنْهُمْ رُعْبًا
And you would have seen the sun, as it rose, inclining away from their cave to the right, and as it set, declining away from them to the left, while they lay in its open space. That is one of the signs of Allah. Whoever Allah guides is truly guided. But whoever He leaves to stray, you will never find for them a guiding mentor. And you would have thought they were awake, though they were asleep. We turned them over, to the right and left, while their dog stretched his forelegs at the entrance. Had you looked at them, you would have certainly fled away from them, filled with horror.
Qur’an 18:17–18 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/17 · Arabic: Tanzil
The sun’s path is the whole of the passage’s geography: it inclines away to the right at rising, declines away to the left at setting, and the sleepers lie in the open space, turned in their sleep right and left. Their dog is given one posture only — forelegs stretched at the entrance; he returns only inside the count of 18:22, named nowhere. The scene closes on the visitor who never comes: had you looked at them, you would have fled, filled with horror.
“A day, or part of a day”
The waking is told as a conversation, beginning with the question the whole passage turns on:
وَكَذَٰلِكَ بَعَثْنَٰهُمْ لِيَتَسَآءَلُوا۟ بَيْنَهُمْ قَالَ قَآئِلٌ مِّنْهُمْ كَمْ لَبِثْتُمْ قَالُوا۟ لَبِثْنَا يَوْمًا أَوْ بَعْضَ يَوْمٍ قَالُوا۟ رَبُّكُمْ أَعْلَمُ بِمَا لَبِثْتُمْ فَٱبْعَثُوٓا۟ أَحَدَكُم بِوَرِقِكُمْ هَٰذِهِۦٓ إِلَى ٱلْمَدِينَةِ فَلْيَنظُرْ أَيُّهَآ أَزْكَىٰ طَعَامًا فَلْيَأْتِكُم بِرِزْقٍ مِّنْهُ وَلْيَتَلَطَّفْ وَلَا يُشْعِرَنَّ بِكُمْ أَحَدًا إِنَّهُمْ إِن يَظْهَرُوا۟ عَلَيْكُمْ يَرْجُمُوكُمْ أَوْ يُعِيدُوكُمْ فِى مِلَّتِهِمْ وَلَن تُفْلِحُوٓا۟ إِذًا أَبَدًا
And so We awakened them so that they might question one another. One of them exclaimed, “How long have you remained ˹asleep˺?” Some replied, “Perhaps a day, or part of a day.” They said ˹to one another˺, “Your Lord knows best how long you have remained. So send one of you with these silver coins of yours to the city, and let him find which food is the purest, and then bring you provisions from it. Let him be ˹exceptionally˺ cautious, and do not let him give you away. For, indeed, if they find out about you, they will stone you ˹to death˺, or force you back into their faith, and then you will never succeed.”
Qur’an 18:19–20 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/19 · Arabic: Tanzil
Their own measure is a day, or part of a day — corrected from among themselves in the same breath: “Your Lord knows best how long you have remained.” The errand is planned with the caution of men who expect the old danger: one man, their silver coins, the purest food, no one given away. The passage does not follow him into the city; the city’s side of it is told in the verse that follows.
Found — and argued over
The text does not stage the discovery; it states it as an act with a purpose:
وَكَذَٰلِكَ أَعْثَرْنَا عَلَيْهِمْ لِيَعْلَمُوٓا۟ أَنَّ وَعْدَ ٱللَّهِ حَقٌّ وَأَنَّ ٱلسَّاعَةَ لَا رَيْبَ فِيهَآ إِذْ يَتَنَٰزَعُونَ بَيْنَهُمْ أَمْرَهُمْ فَقَالُوا۟ ٱبْنُوا۟ عَلَيْهِم بُنْيَٰنًا رَّبُّهُمْ أَعْلَمُ بِهِمْ قَالَ ٱلَّذِينَ غَلَبُوا۟ عَلَىٰٓ أَمْرِهِمْ لَنَتَّخِذَنَّ عَلَيْهِم مَّسْجِدًا
That is how We caused them to be discovered so that their people might know that Allah’s promise ˹of resurrection˺ is true and that there is no doubt about the Hour. When the people disputed with each other about the case of the youth ˹after their death˺, some proposed, “Build a structure around them. Their Lord knows best about them.” Those who prevailed in the matter said, “We will surely build a place of worship over them.”
Qur’an 18:21 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/21 · Arabic: Tanzil
The purpose is named first: that their people might know Allah’s promise of resurrection is true, and that there is no doubt about the Hour. The dispute that follows is over the building — a structure around them, said some; a place of worship over them, said those who prevailed. Both sayings are recorded; neither is endorsed; the youths speak no more.
The count the text will not settle
The count is disputed inside the story itself, and the passage prints the dispute in full before answering it:
سَيَقُولُونَ ثَلَٰثَةٌ رَّابِعُهُمْ كَلْبُهُمْ وَيَقُولُونَ خَمْسَةٌ سَادِسُهُمْ كَلْبُهُمْ رَجْمًۢا بِٱلْغَيْبِ وَيَقُولُونَ سَبْعَةٌ وَثَامِنُهُمْ كَلْبُهُمْ قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌ فَلَا تُمَارِ فِيهِمْ إِلَّا مِرَآءً ظَٰهِرًا وَلَا تَسْتَفْتِ فِيهِم مِّنْهُمْ أَحَدًا
Some will say, “They were three, their dog was the fourth,” while others will say, “They were five, their dog was the sixth,” ˹only˺ guessing blindly. And others will say, “They were seven and their dog was the eighth.” Say, ˹O Prophet,˺ “My Lord knows best their ˹exact˺ number. Only a few people know as well.” So do not argue about them except with sure knowledge, nor consult any of those ˹who debate˺ about them.
Qur’an 18:22 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/22 · Arabic: Tanzil
The first two sayings are graded by the verse itself — guessing blindly — and the third stands ungraded beside them; the answer is a refusal and an instruction: “My Lord knows best their ˹exact˺ number”, and no arguing beyond sure knowledge. Ibn Kathir, on the verse as displayed at quran.com, notes the list’s shape: “Allah tells us that people disputed over the number of the people of the Cave. The Ayah mentions three views, proving that there was no fourth suggestion.” This telling follows the verse: the sayings are printed as sayings, and none is settled. The passage then sets its aside on the word “tomorrow”: “And never say of anything, “I will definitely do this tomorrow,” without adding, “if Allah so wills!” But if you forget, then remember your Lord, and say, “I trust my Lord will guide me to what is more right than this.”” (18:23–24).
Three hundred years, and nine more
The length, when it comes, is the text’s own figure, at the text’s own precision:
وَلَبِثُوا۟ فِى كَهْفِهِمْ ثَلَٰثَ مِا۟ئَةٍ سِنِينَ وَٱزْدَادُوا۟ تِسْعًا قُلِ ٱللَّهُ أَعْلَمُ بِمَا لَبِثُوا۟ لَهُۥ غَيْبُ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ أَبْصِرْ بِهِۦ وَأَسْمِعْ مَا لَهُم مِّن دُونِهِۦ مِن وَلِىٍّ وَلَا يُشْرِكُ فِى حُكْمِهِۦٓ أَحَدًا
They had remained in their cave for three hundred years, adding nine. Say, ˹O Prophet,˺ “Allah knows best how long they stayed. With Him ˹alone˺ is ˹the knowledge of˺ the unseen of the heavens and the earth. How perfectly He hears and sees! They have no guardian besides Him, and He shares His command with none.”
Qur’an 18:25–26 · Surah Al-Kahf · translation: Dr Mustafa Khattab, quran.com/18/25 · Arabic: Tanzil
Three hundred years, adding nine — no rounding, no calendar, no era. The next verse hands the reckoning back where the count was left: “Allah knows best how long they stayed.” The sleepers’ own guess was a day, or part of a day; the text’s figure stands beside it unreconciled, and the story closes at 18:26.
What the text leaves open
The gaps in this story are the text’s own: the retellings that gather around it fill every one of them.
Their names. The passage gives none — not to the sleepers, not to their dog. Name-lists stand in the later books; none is printed here.
Their number. Disputed inside the story, and left unsettled by the verse that reports it (18:22).
Their city and their king. The passage says “the city” and “their people”, and names neither a place nor a ruler. Identifications of the city and its king stand in the books’ tier; this telling adopts none of them as a finding.
The cave’s place. The passage gives the sun’s path at its mouth and nothing else — no valley, no mountain, no road from the city.
Al-Raqim. The word behind the translation’s “the plaque” (18:9) is read in several ways; the reading is left open, as the pillar leaves it.
What the text withholds, this telling withholds; what it states, it states in the verses printed on this page.
Questions
How many people slept in the cave?
The Qur’an prints the dispute rather than a count. Its verse records three sayings — three, with their dog the fourth; five, with their dog the sixth; seven, with their dog the eighth — calls the first two guessing blindly, and answers, “My Lord knows best their ˹exact˺ number” (18:22). This telling settles no count, and it prints no names for the sleepers.
How long did the sleepers sleep?
Three hundred years, and nine more: “They had remained in their cave for three hundred years, adding nine.” (18:25). The next verse leaves the reckoning of their stay to Allah’s knowledge (18:26). The sleepers’ own estimate on waking was far smaller — “Perhaps a day, or part of a day” (18:19) — and the passage leaves the two measures side by side.
Who were the People of the Cave?
Youths who believed in their Lord (18:13). They stood and declared Allah the Lord of the heavens and the earth, refused the gods their people had taken besides Him, and took refuge in the cave (18:14–16). No names, no city and no king are given, and none is added here.
What is al-Raqim — the “plaque” of 18:9?
The Arabic word behind the translation’s “the plaque”. The commentators read it in several ways — as an inscription, a valley, a town — and the reading is left open here, as the pillar leaves it.
Why does the passage pause, between the count and the length, to speak of saying “tomorrow”?
Because the text sets it there. Verses 23–24 stand inside the story’s range, after the count and before the length: never say of anything, “I will definitely do this tomorrow,” without adding, “if Allah so wills!” The passage gives the direction with no occasion, and none is added here.
Where can I read the whole surah, and the reports about reading it on Friday?
On this site’s Surah Al-Kahf page: the surah whole, its 110 ayahs and four stories in outline, and the reports that travel with it — the Friday light (Mishkat al-Masabih 2175, graded Hasan) and the protection reports — weighed there. The Quranic Waqiat pillar surveys this story beside the surah’s other three.
ImanAtlas retells the story of the People of the Cave from the sources named on this page and gives no rulings. For a question about your own situation, ask a qualified scholar you trust.
Sources
- Qur’an 18:9–26 — Arabic from Tanzil; translation by Dr Mustafa Khattab at quran.com/18/9 · quran.com/18/13 · quran.com/18/17 · quran.com/18/19 · quran.com/18/21 · quran.com/18/22 · quran.com/18/25.
- Ibn Kathir (Abridged), as displayed on the quran.com ayah pages — on 18:22, under the heading “Their Number”, quoted in the section on the count.
- Quranic Waqiat (this site) — the pillar this page belongs to; its first movement surveys this passage, and its framing — the range, the unsettled count, the open reading of al-Raqim — is matched here.
- Surah Al-Kahf (this site) — the surah whole, and the Friday and protection reports weighed at the grades printed there.
- Section method — Stories hub · Sources & Method.
Every verse on this page is quoted from the translation its passage names, with the translation’s footnote markers left out; material that stands in the commentary alone is printed in the commentary’s name.
