What is the story of the People of the Cave?

Mostly, it's the story of a group of young believers who fled to a cave to protect their faith and woke up after a very long sleep. It's told in Surah al-Kahf. Allah protected them, then raised them from sleep as a sign that resurrection is true. The story teaches faith under pressure and trust in Allah.
Who were they?
The Quran calls them the "people of the cave" (Ashab al-Kahf). It says they were youths who believed in their Lord and that Allah increased them in guidance:
They lived among a people who worshipped others besides Allah. 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" (Quran 18:14). The Quran does not name the place, the ruler or the exact time, and scholars have different opinions about where this took place.
What happened
- They took refuge in the cave: they prayed, "Our Lord! Grant us mercy from Yourself and guide us rightly through our ordeal" (Quran 18:10). They were told that Allah would extend His mercy to them (Quran 18:16).
- They slept: Allah caused them to sleep in the cave for a very long time. The Quran says they stayed "three hundred years, adding nine" (Quran 18:25).
- They awoke: they asked each other how long they had slept and guessed "a day, or part of a day". They sent one of them to the city with their silver coins to buy food, and told him to be careful (Quran 18:19).
- They were discovered: the people found out about them, and Allah says this was so people might know that His promise of resurrection is true and the Hour is certain (Quran 18:21).
The details the Quran leaves out
People later argued about how many young men there were. The Quran says some would guess three, five or seven, then tells the Prophet ﷺ to say, "My Lord knows best their exact number", and not to argue about it without sure knowledge (Quran 18:22). Allah also knows best how long they stayed (Quran 18:26). This is a lesson in itself: don't spend your energy on details that Allah has not told us.
Lessons from the story
- Hold on to your faith: the young men put their faith before comfort and safety.
- Seek refuge in Allah: they made dua and trusted Him to arrange their affairs.
- Resurrection is real: the one who kept them asleep for years can raise the dead.
- Keep company that helps your faith: they supported each other.
This story is read on Fridays by many Muslims, together with the rest of Surah al-Kahf. See Should I read Surah al-Kahf on Fridays? The same surah includes the story of a great ruler. See Who is Dhul-Qarnayn in the Quran?
- The People of the Cave were young believers who fled persecution to protect their faith.
- Allah kept them asleep for 300 years, adding nine (Quran 18:25).
- Their awakening is a sign that resurrection is true (Quran 18:21).
- The Quran leaves out details like their number, so we should too.
People also ask
Where does the Quran forbid alcohol?
Yes, the Quran forbids alcohol, most clearly in Surah al-Ma'idah 5:90-91, after earlier verses (16:67, 2:219, 4:43) prepared believers step by step.
Read the full answer →What kind of Quran should I buy as a new Muslim?
It depends, but most new Muslims do best with a bilingual Arabic-English Quran, ideally with transliteration or tajweed colours and clear print.
Read the full answer →What is the difference between the Quran and hadith?
Mostly source and wording: the Quran is Allah's word recorded exactly, while hadith report the Prophet's sayings and actions through narrators.
Read the full answer →What is the difference between Makkan and Madinan surahs?
Makkan surahs were revealed before the Hijrah and focus on faith and the afterlife; Madinan surahs came after it and focus on law and community life.
Read the full answer →What is the best app to read the Quran?
There is no single best app to read the Quran. Choose one with accurate Arabic, a trusted translation, clear audio and no ads in the middle of verses.
Read the full answer →