The People of the Cave: Their Story and Why the Quran Says 309 Years
The People of the Cave were young believers who hid in a cave to protect their faith. They slept there for a very long time. The Quran tells us how long: “three hundred years, adding nine.”
Last updated:
Their story is told in Surah Al-Kahf (“The Cave”), the 18th chapter of the Quran, in verses 18:9–26. This article tells the story in order. Then it looks closely at one question: why does the Quran say “300, adding nine” and not simply “309”?
It keeps four things apart: what the Quran says, what classical commentators said, what modern writers suggest, and what simple maths can show.
Four things to keep apart
What the Quran says
The words of Surah Al-Kahf, with verse numbers.
What classical scholars said
Early commentary on the verses, the years and the number of people.
What modern writers suggest
Popular explanations, including the solar and lunar year idea.
What the maths shows
A simple calculation, and its limits.
Who Were the People of the Cave?
The Quran calls them Ashab al-Kahf, “the companions of the cave.” They are mentioned in Surah Al-Kahf (“The Cave”), a chapter revealed in Makkah. It also calls them fityah, which means “young men” (18:10, 18:13).
That is almost all the Quran tells us about who they were. It does not give their names, their city, their ruler or the date. Those details come only from later stories. They are not part of the Quran.
What does “ar-Raqim” mean?
Verse 18:9 also mentions ar-Raqim. Scholars do not agree on its meaning. Many say it means a written tablet or inscription. Others say it is the name of a place. The Quran does not explain it.
The verse asks whether the story is something amazing among Allah’s signs. Many commentators read it this way: the story is amazing, but it is not Allah’s greatest sign. The creation of the heavens and the earth is greater.
Why was this story told?
Early biographies of the Prophet ﷺ report that some people in Makkah asked him about the People of the Cave. He said he would answer the next day, but he did not say “if Allah wills.” The revelation came after a delay and included a reminder about this (18:23–24). This reason comes from early books, not from the Quran itself.
Why Did They Enter the Cave?
The Quran says these young men believed in their Lord, and Allah increased them in guidance (18:13). He also made their hearts strong when they stood up and spoke (18:14). In simple words, they said:
- Our Lord is the Lord of the heavens and the earth. We will never call on any god besides Him (18:14).
- If we did, we would be saying something very wrong (18:14).
- Our people have taken other gods. Why do they not bring clear proof for them? (18:15)
- Who does more wrong than the one who invents a lie about Allah? (18:15)
Then they made a decision. If they stepped away from their people and from what their people worshipped, they should take shelter in the cave. They hoped that their Lord would spread His mercy over them and make their situation easy (18:16).
The Quran does not say who forced them or how. But verse 18:20 shows what they feared: if their people found them, they would stone them or force them back to their old religion.
Their prayer to Allah
إِذْ أَوَى ٱلْفِتْيَةُ إِلَى ٱلْكَهْفِ فَقَالُوا۟ رَبَّنَآ ءَاتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا
When the young men took shelter in the cave, they said, ‘Our Lord, give us mercy from You, and prepare for us a way of right guidance in our situation.’
They did not ask for power or for victory over their people. They asked for mercy and for guidance, and they trusted Allah with the rest.
What Happened Inside the Cave?
The Quran says Allah “struck upon their ears” in the cave for a number of years (18:11). This is an Arabic way of saying that He made them fall into a deep sleep. The number of years is given later, in 18:25.
What the Quran tells us
- The sun. When it rose, it moved away from their cave on the right. When it set, it passed them on the left. They lay in a wide space inside the cave. The Quran calls this one of Allah’s signs (18:17).
- Their look. A person who saw them would think they were awake, but they were asleep (18:18).
- Their turning. Allah turned them to the right and to the left. The Quran does not say why. Some commentators say this protected their bodies (18:18).
- Their dog. The dog lay with its front legs stretched out at the entrance (18:18).
- Fear. Anyone who looked in would turn and run away, filled with fear (18:18).
The Quran does not give the dog’s name, and it does not describe the size or place of the cave. Later stories add many details. They should be read as later stories, not as Quranic facts.
Why did Allah wake them?
Verse 18:12 gives a reason. Allah raised them so that He could show which of the two groups was better at counting how long they had stayed. The event also showed how limited human counting of time can be.
How Long Did They Sleep?
When they woke, they talked among themselves. One asked how long they had stayed. They answered, “A day, or part of a day.” Others said, “Your Lord knows best how long you stayed” (18:19). Then the Quran gives the real figure:
وَلَبِثُوا۟ فِى كَهْفِهِمْ ثَلَـٰثَ مِا۟ئَةٍ سِنِينَ وَٱزْدَادُوا۟ تِسْعًا
They remained in their cave for three hundred years, adding nine.
The Arabic is وَلَبِثُوا۟ فِى كَهْفِهِمْ ثَلَـٰثَ مِا۟ئَةٍ سِنِينَ وَٱزْدَادُوا۟ تِسْعًا (wa labithu fi kahfihim thalatha mi’atin sinina wazdadu tis‘a). Word for word: “they stayed in their cave three hundred years, and they added nine.”
The gap between “a day or part of a day” and 309 years is huge. This is part of the point: human feeling about time can be completely wrong.
The Quran uses this idea elsewhere. In 2:259, a man whom Allah made die for a hundred years and then raised again thinks he stayed “a day or part of a day.” In 23:112–114, people on the Day of Judgment say the same about their time on earth.
Who is speaking in verse 18:25?
Most commentators take the verse as Allah’s own statement of the true number. A few early commentators, such as Qatada according to reports, understood it as something the People of the Book claimed. They pointed to the next verse: “Say, Allah knows best how long they remained.” Most scholars did not accept this view.
Why Does the Quran Say 300 Years and Add Nine?
The Quran could have said “309 years.” It chose “three hundred years, adding nine.” People have given several reasons.
- It is a normal way of speakingArabic can give a big number first and then add a small one. In 29:14, the Quran says Noah stayed among his people “a thousand years less fifty.” The Quran sometimes gives numbers in two parts.
- It may point to two ways of counting yearsThis is the best-known explanation. It links the 300 and the 9 to the difference between solar and lunar years. The next section explains it.
- It may stress that the number is exactSome readers feel that “adding nine” shows the number is precise, not rounded. The next verse then says that full knowledge belongs to Allah.
The Quran does not say which of these reasons is meant. They are readings of the wording.
Does 300 + 9 Mean Solar and Lunar Years?
The idea in simple words
A solar year is the time the earth takes to go around the sun. Most of the world’s calendar is based on it. A lunar year is twelve moon months. The Islamic calendar is lunar. It is shorter than the solar year, so Islamic dates move earlier through the seasons each year.
The idea is this: if 300 years were counted by the sun and then converted into moon years, you would get about 309.
The maths, step by step
| Item | Value |
|---|---|
| One solar year | about 365.24 days |
| One moon month | about 29.53 days |
| One lunar year (12 months) | about 354.37 days |
| 300 solar years | about 109,573 days (300 × 365.24) |
| 300 solar years in lunar years | 109,573 ÷ 354.37 ≈ 309.2 lunar years |
| 300 lunar years in solar years | about 106,310 days ÷ 365.24 ≈ 291 solar years |
So 300 solar years are about nine lunar years longer than 300 lunar years. The result is very close to the Quran’s “three hundred, adding nine.”
What classical commentators said
Some classical commentaries mention this idea, such as those of al-Qurtubi and Ibn Kathir. They present it as one explanation held by some scholars. In it, the People of the Book counted 300 years by the sun, while the Arabs counted by the moon, so the Quran adds nine to give the lunar figure. They do not present it as the only explanation.
What modern writers say
Today, many Muslim writers, speakers and websites repeat this explanation. Some present it as a clear sign of the Quran’s precision. Others are more careful and call it an interesting possibility.
What the maths can and cannot show
- Close, not perfect. 300 solar years come to about 309.2 lunar years. That is “about nine,” not exactly nine. The answer also moves a little if you use slightly different values.
- The verse does not say it. The Arabic word sinin just means “years.” The verse does not mention the sun, the moon or any calendar.
- Old calendars varied. Ancient peoples did not all count years as we do today. The neat averages above are modern.
- The story does not depend on it. The lessons stay the same whether or not this explanation is right.
The fair summary: the solar and lunar explanation is a well-known interpretation that fits the numbers well. Many Muslims find it meaningful. It is not an explicit statement of the Quran, and the maths cannot prove it. This article does not present it as a scientific proof of the Quran. The Quran is a book of guidance.
| Level | What it says |
|---|---|
| The Quran | They stayed “three hundred years, adding nine” (18:25). |
| Classical commentators | Some mention that 300 solar years are about 309 lunar years, as one explanation. |
| Modern writers | Many repeat the explanation. Some call it a sign of precision, others a possibility. |
| The maths | 300 solar years ≈ 309.2 lunar years: a close fit, not an exact one. |
The verse that follows
Right after the number, the Quran says:
قُلِ ٱللَّهُ أَعْلَمُ بِمَا لَبِثُوا۟ ۖ لَهُۥ غَيْبُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضِ
Say: Allah knows best how long they remained. To Him belongs the unseen of the heavens and the earth.
This is a strong reminder. Even after giving the number, the reader is told not to claim more knowledge than the text gives.
What Does the Quran Say About Their Number?
Verse 18:22 says that people argued about how many there were:
- Some said three, and the fourth was their dog.
- Some said five, and the sixth was their dog.
- Some said seven, and the eighth was their dog.
The Quran says the first two groups were “guessing at the unseen.” Then it gives its own answer:
قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌ
Say: My Lord knows best their number. None knows them except a few.
So the Quran does not give a final number.
Some commentators noticed a detail. The phrase “guessing at the unseen” is attached to the first two claims, but not to the third. A report attributed to Ibn ‘Abbas says that he was among the “few” and that they were seven. Other scholars say the Quran leaves the matter open. This article follows the Quran’s own wording: the number is not given.
The verse also gives practical advice: do not argue about them except with plain talk, and do not ask others for their opinion about them (18:22). The number does not change the lesson.
What Happened When They Were Discovered?
After they woke up, the young men were hungry. They decided to send one of them to the city with a silver coin (wariq) to buy food (18:19). They gave him careful instructions:
- Look for the purest food and bring some back.
- Be gentle and polite.
- Do not let anyone know about us.
They explained why: if the people found out about them, they would stone them or force them back to their old religion, and then they would never succeed (18:20).
Verse 18:21 says that Allah caused the people to find out about them. The Quran gives the reason: so that people would know that Allah’s promise is true and that there is no doubt about the Hour, the Day of Judgment.
Then the people argued about what to do. Some said, “Build a structure over them. Their Lord knows best about them.” Those who held power said, “We will build a place of worship over them” (18:21).
The Quran does not describe the talk in the city, the ruler of that time, or what happened to the young men afterward. Later stories fill in these details, and they differ from each other.
The Seven Sleepers of Ephesus: Is There a Connection?
Many readers ask about the Christian story of the Seven Sleepers of Ephesus. This section is a historical comparison. It is not part of the Quran’s message.
What the Christian tradition says
In the Christian tradition, seven young men of Ephesus (in present-day Turkey) fled from persecution under the Roman emperor Decius (ruled 249–251). They hid in a cave that was closed up. They woke generations later, in the time of Theodosius II (ruled 408–450). One of them went into the city to buy food, and his old coin led to their discovery. In many versions, the story is linked to a debate about the resurrection of the dead.
The story is known from versions of the 500s, including a Syriac homily attributed to Jacob of Serugh and a Latin account by Gregory of Tours. The versions differ on details such as the names and the number of years. In many, the figure is roughly two centuries.
Similarities
- Young believers.
- A cave used as a refuge.
- A very long sleep.
- One person sent to buy food.
- Discovery by the townspeople.
- Resurrection as a lesson.
Differences
- The Quran does not name Ephesus, a Roman emperor or any time period.
- The Quran does not give any names.
- The Quran mentions the dog. The Christian accounts usually do not.
- The Quran gives the time as 300 years, adding nine. The Christian versions give other figures, and they differ among themselves.
- The Quran says the number of people is not known and tells readers not to argue about it.
- The Quran’s focus is on faith in one Lord, trust in Allah and the truth of the Hour, not on the plot.
What do scholars say?
- Many Muslim scholars believe the Quran tells a true event through revelation. Verse 18:13 says Allah narrates their story “in truth.” Some accept that the same event may also have been remembered in Christian tradition.
- Some non-Muslim researchers think the Quran reflects a story that was already known in the region.
- Others point out that the differences are significant and that comparison alone cannot settle the matter.
It has not been proven that the Quran and the Ephesus tradition describe the same event. Several places claim to be the cave, including one near Ephesus and others in Jordan and elsewhere. Scholars do not agree on any of them. The Quran never names the place, and its lessons do not depend on it.
What Can We Learn From the Story?
- Faith can stand under pressureThe young men believed when their society did not. Allah says He made their hearts strong (18:14).
- Courage can be calmThey did not fight. They spoke the truth and then left.
- Leaving a harmful place can be wiseThey kept their faith by stepping away from a place that threatened it (18:16).
- Trust Allah with what you cannot controlTheir prayer asked for mercy and guidance (18:10), and Allah protected them in ways they could not have planned.
- Allah protects His servantsThe sun did not harm them, and fear kept people away (18:17–18).
- Allah can raise the deadAfter centuries of sleep, they woke. This shows that Allah’s promise is true and the Hour is certain (18:21).
- Our sense of time is limitedThey thought it was a day, but it was centuries. Worldly time can feel long, but it passes quickly compared with the next life.
- Do not argue about what was not revealedThe number of the sleepers and the details of the cave were left open. The Quran asks us to focus on what matters (18:22).
- Say “if Allah wills”The verses after the story teach us not to say “I will do this tomorrow” without adding “if Allah wills” (18:23–24). Our plans depend on Him.
- Be humble about knowledgeEven after giving the number of years, the Quran says that Allah knows best (18:26).
Conclusion
The People of the Cave were young believers who protected their faith by leaving their society and trusting Allah. Allah kept them asleep in the cave. When they woke, they thought they had slept for a short time, but the Quran says they stayed “three hundred years, adding nine.” In summary:
- The QuranThey stayed “three hundred years, adding nine” (18:25).
- The wordingThis could be a normal way of giving numbers, a link to two ways of counting years, or a way to stress that the number is exact.
- The explanation300 solar years are about 309.2 lunar years. This is a close fit, but it is an interpretation. The verse does not mention solar or lunar years.
- The reminderThe next verse says that Allah knows best how long they stayed (18:26).
The main message of the story is stronger than any number: Allah is in control of time, He protects those who trust Him, and He is able to raise the dead.
Sources and References
- The Holy Quran
- Surah Al-Kahf (18:9–26); also 2:259, 23:112–114 and 29:14.
- Classical commentary
- The tafsir of al-Tabari, al-Qurtubi and Ibn Kathir on Surah Al-Kahf: the number of the sleepers, the meaning of ar-Raqim, and the solar and lunar explanation.
- Sirah of Ibn Ishaq
- Edited by Ibn Hisham. Reports why the story was asked about.
- Astronomy values
- Solar (tropical) year about 365.2422 days; average lunar month about 29.5306 days.
- The Seven Sleepers
- A Syriac homily attributed to Jacob of Serugh (died 521); Glory of the Martyrs by Gregory of Tours (6th century). Details differ between versions.
- A note on accuracy
- Please check the wording of the original sources, and ask qualified scholars about points where scholars disagree.