Skip to content
أَصْحَابُ الْكَهْف
Quranic Translation (Red)
Hadith (Bold Blue)
Tafseer
Background & Context

The First of the Four Stories — The Trial of Faith

Where this sits. Surah Al-Kahf answers four trials (fitan) of human life through four stories. The first is the fitnah of faith (dīn): what does a believer do when holding to the truth becomes dangerous, and the whole society is against him? The Quran's answer is the story of the People of the Cave — a small band of young men who chose Allah over their people, and whom Allah protected in a way no human plan could.

The background. A group of believing youths lived under a tyrannical, idol-worshipping king who forced his people into shirk and persecuted those who refused. Rather than abandon their faith, the youths openly declared Tawhid, then withdrew from their people and fled to a cave for refuge. There Allah cast them into a deep sleep — for three hundred years, plus nine (309 lunar years) — and then awakened them. When one of them went to the city to buy food with old coins, the society had completely changed; the people discovered them, and their story became a living proof that Allah's promise is true and the Hour is real — for if Allah can preserve and resurrect them after three centuries, the resurrection of all mankind is no wonder.

"Ar-Raqīm." The phrase "Aṣḥāb al-Kahf wa-r-Raqīm" (the People of the Cave and the Inscription) is most commonly explained as an inscribed tablet recording their names and story, placed at the mouth of the cave. Ar-Raqīm comes from raqama, "to write."

Why Quraysh asked. This was one of the three test-questions the Quraysh put to the Prophet ﷺ on the advice of the rabbis of Madinah — alongside the question of Dhul-Qarnayn and the question of the soul (answered in 17:85). The detailed, accurate answer was itself a sign of true revelation.

A Wonder Among Allah's Signs · 9–12
9
Al-Kahf 18:9
The People of the Cave — Introduced
أَمْ حَسِبْتَ أَنَّ أَصْحَٰبَ ٱلْكَهْفِ وَٱلرَّقِيمِ كَانُوا۟ مِنْ ءَايَٰتِنَا عَجَبًا
Translation
"Do you think that the People of the Cave and the Inscription (Ar-Raqīm) were a wonder among Our signs?"
📚
Tafseer — Ibn Kathir & Maududi
The verse opens with a gentle rhetorical question: do you reckon this story so astonishing? Ibn Kathir notes the implication — the People of the Cave, remarkable as they are, are not the most amazing of Allah's signs. The creation of the heavens and earth, the alternation of night and day, and the resurrection itself are far greater. The story is a mercy and a proof, but it should not be treated as the limit of Allah's power.
10
Al-Kahf 18:10
The Youths' Du'a in the Cave
إِذْ أَوَى ٱلْفِتْيَةُ إِلَى ٱلْكَهْفِ فَقَالُوا۟ رَبَّنَآ ءَاتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا
Translation
"When the youths took refuge in the cave, they said: 'Our Lord! Grant us mercy from Yourself, and shape for us right guidance in our affair.'"
📚
Tafseer — Maududi
Notice their first move is not a plan but a du'a. Having abandoned home, status and safety for the sake of faith, they turn entirely to Allah for two things: raḥmah (mercy to sustain them) and rashad (a right and well-guided outcome to their affair). Maududi highlights that they were fityah — young men — reminding us that it is often the youth who carry the truth most boldly when the elders have compromised.
🕌
A Du'a Worth Memorising
"رَبَّنَا آتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا" — "Our Lord, grant us mercy from Yourself and prepare for us right guidance in our affair."
The supplication of the People of the Cave (18:10) — recited by believers seeking mercy and a guided way out of hardship
11
Al-Kahf 18:11
Sealed in Sleep for Years
فَضَرَبْنَا عَلَىٰٓ ءَاذَانِهِمْ فِى ٱلْكَهْفِ سِنِينَ عَدَدًا
Translation
"So We sealed their ears [with sleep] in the cave for a number of years,"
📚
Tafseer — Ibn Kathir
The idiom "We struck upon their ears" means He cast over them a deep, undisturbed sleep — the ears being the gateway through which sleep is broken, so sealing them is sealing them away from the world. Allah Himself takes charge of their protection; the moment they entrusted their affair to Him (v.10), He answered by suspending them safely beyond the reach of their persecutors.
12
Al-Kahf 18:12
Awakened to Test the Count
ثُمَّ بَعَثْنَٰهُمْ لِنَعْلَمَ أَىُّ ٱلْحِزْبَيْنِ أَحْصَىٰ لِمَا لَبِثُوٓا۟ أَمَدًا
Translation
"then We awakened them to know which of the two parties would better calculate the length of their stay."
📚
Tafseer — Maududi
"To know" (li-na'lama) does not mean Allah was unaware — He knows all. It expresses the manifestation of knowledge into reality: that the difference between the two groups (who disputed how long the sleepers stayed) would become visible and established. The sleepers themselves would soon disagree about the duration (v.19), underscoring that only Allah truly measures time.
Youths Who Stood for Tawhid · 13–16
13
Al-Kahf 18:13
Youths Firm in Faith
نَّحْنُ نَقُصُّ عَلَيْكَ نَبَأَهُم بِٱلْحَقِّ ۚ إِنَّهُمْ فِتْيَةٌ ءَامَنُوا۟ بِرَبِّهِمْ وَزِدْنَٰهُمْ هُدًى
Translation
"We relate to you their story in truth. They were youths who believed in their Lord, and We increased them in guidance."
📚
Tafseer — Ibn Kathir
Allah now tells the story "in truth" — a correction to the embellished and contradictory versions circulating among the People of the Book. The principle in "they believed… and We increased them in guidance" is a recurring Quranic law: whoever takes a step toward guidance, Allah opens more of it to him (cf. 47:17). Faith is not static; it is rewarded with deeper faith.
14
Al-Kahf 18:14
Hearts Made Firm in Tawhid
وَرَبَطْنَا عَلَىٰ قُلُوبِهِمْ إِذْ قَامُوا۟ فَقَالُوا۟ رَبُّنَا رَبُّ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ لَن نَّدْعُوَا۟ مِن دُونِهِۦٓ إِلَٰهًا ۖ لَّقَدْ قُلْنَآ إِذًا شَطَطًا
Translation
"We strengthened their hearts when they stood up and said: 'Our Lord is the Lord of the heavens and the earth. Never will we call upon any god besides Him; if we did, we would have uttered an outrageous lie.'"
📚
Tafseer — Maududi
"We bound up their hearts" (rabaṭnā ʿalā qulūbihim) is the gift of thabāt — steadfastness — that Allah grants when a person resolves to stand for truth at real cost. They "stood up" publicly and declared pure Tawhid before a hostile king. Their reasoning is precise: to invoke any deity besides the Lord of the heavens and earth would be shaṭaṭ — a wildly excessive, baseless falsehood. Conviction, not just emotion, anchored them.
15
Al-Kahf 18:15
Demanding Proof for Idols
هَٰٓؤُلَآءِ قَوْمُنَا ٱتَّخَذُوا۟ مِن دُونِهِۦٓ ءَالِهَةً ۖ لَّوْلَا يَأْتُونَ عَلَيْهِم بِسُلْطَٰنٍ بَيِّنٍ ۖ فَمَنْ أَظْلَمُ مِمَّنِ ٱفْتَرَىٰ عَلَى ٱللَّهِ كَذِبًا
Translation
"'These, our people, have taken gods besides Him. Why do they not bring a clear authority for them? Who, then, does greater wrong than he who invents a lie against Allah?'"
📚
Tafseer — Ibn Kathir
The youths apply a clean intellectual standard to their society's religion: where is the evidence? False worship can never produce a sulṭān bayyin — a clear, decisive proof — because none exists. To assign divinity without authority from Allah is the very definition of fabricating a lie against Him, and there is no greater injustice (ẓulm) than that.
16
Al-Kahf 18:16
Withdraw to the Cave
وَإِذِ ٱعْتَزَلْتُمُوهُمْ وَمَا يَعْبُدُونَ إِلَّا ٱللَّهَ فَأْوُۥٓا۟ إِلَى ٱلْكَهْفِ يَنشُرْ لَكُمْ رَبُّكُم مِّن رَّحْمَتِهِۦ وَيُهَيِّئْ لَكُم مِّنْ أَمْرِكُم مِّرْفَقًا
Translation
"'And when you have withdrawn from them and all that they worship besides Allah, take refuge in the cave; your Lord will spread out His mercy for you and make your affair easy for you.'"
📚
Tafseer — Maududi
This is the moment of hijrah in miniature: when a society cannot be reformed and threatens one's faith, withdrawing from it for the sake of Allah is itself an act of worship. They consult one another and resolve to flee. The promise attached is striking — leave for Allah, and "your Lord will spread His mercy over you and ease your affair." What looks like flight into a dark cave is, with Allah, an entry into mercy and relief (mirfaq).
The Sun, the Sleep & the Awakening · 17–21
17
Al-Kahf 18:17
The Sun Spared Them
۞ وَتَرَى ٱلشَّمْسَ إِذَا طَلَعَت تَّزَٰوَرُ عَن كَهْفِهِمْ ذَاتَ ٱلْيَمِينِ وَإِذَا غَرَبَت تَّقْرِضُهُمْ ذَاتَ ٱلشِّمَالِ وَهُمْ فِى فَجْوَةٍ مِّنْهُ ۚ ذَٰلِكَ مِنْ ءَايَٰتِ ٱللَّهِ ۗ مَن يَهْدِ ٱللَّهُ فَهُوَ ٱلْمُهْتَدِ ۖ وَمَن يُضْلِلْ فَلَن تَجِدَ لَهُۥ وَلِيًّا مُّرْشِدًا
Translation
"And you would see the sun, as it rose, incline away from their cave to the right, and as it set, turn away from them to the left, while they lay in an open space within it. That is from the signs of Allah. Whomever Allah guides is rightly guided; and whomever He leaves to stray — for him you will find no protecting guide."
📚
Tafseer — Ibn Kathir
The cave's orientation was a quiet miracle of tadbīr: the sun's rays cleared them at rising and setting, so their bodies were neither burned nor decayed, while fresh air reached them in the open space (fajwah). Then the lesson is generalised — true guidance is wholly Allah's gift; whoever He guides cannot be misled, and whoever He abandons will find no other guardian. Their physical preservation mirrors the spiritual preservation of the guided heart.
18
Al-Kahf 18:18
Asleep Yet Seeming Awake
وَتَحْسَبُهُمْ أَيْقَاظًا وَهُمْ رُقُودٌ ۚ وَنُقَلِّبُهُمْ ذَاتَ ٱلْيَمِينِ وَذَاتَ ٱلشِّمَالِ ۖ وَكَلْبُهُم بَٰسِطٌ ذِرَاعَيْهِ بِٱلْوَصِيدِ ۚ لَوِ ٱطَّلَعْتَ عَلَيْهِمْ لَوَلَّيْتَ مِنْهُمْ فِرَارًا وَلَمُلِئْتَ مِنْهُمْ رُعْبًا
Translation
"You would think them awake, though they were asleep. We turned them over to the right and to the left, while their dog stretched its forelegs at the entrance. Had you looked at them, you would have turned away in flight, filled with terror of them."
📚
Tafseer — Maududi
Their open eyes made them look awake, though they slept — a protection from the assumption that they were dead. Allah turned them periodically so their bodies would not waste away against the ground. Even the dog was honoured by their company, stretched at the threshold (waṣīd) — a sign that keeping the company of the righteous elevates even the lowly. The awe (ru'b) cast over the scene shielded them from any intruder who might have disturbed them.
19
Al-Kahf 18:19
Awake — "How Long Did We Stay?"
وَكَذَٰلِكَ بَعَثْنَٰهُمْ لِيَتَسَآءَلُوا۟ بَيْنَهُمْ ۚ قَالَ قَآئِلٌ مِّنْهُمْ كَمْ لَبِثْتُمْ ۖ قَالُوا۟ لَبِثْنَا يَوْمًا أَوْ بَعْضَ يَوْمٍ ۚ قَالُوا۟ رَبُّكُمْ أَعْلَمُ بِمَا لَبِثْتُمْ فَٱبْعَثُوٓا۟ أَحَدَكُم بِوَرِقِكُمْ هَٰذِهِۦٓ إِلَى ٱلْمَدِينَةِ فَلْيَنظُرْ أَيُّهَآ أَزْكَىٰ طَعَامًا فَلْيَأْتِكُم بِرِزْقٍ مِّنْهُ وَلْيَتَلَطَّفْ وَلَا يُشْعِرَنَّ بِكُمْ أَحَدًا
Translation
"Thus did We awaken them so they might question one another. One of them asked, 'How long have you stayed?' They said, 'A day, or part of a day.' They said, 'Your Lord knows best how long you stayed. So send one of you with these silver coins to the city, and let him see which food is purest, and bring you provision from it. And let him be cautious, and let no one become aware of you.'"
📚
Tafseer — Ibn Kathir
They awoke convinced only a day had passed — for three centuries had felt like a nap, just as the dead will feel on the Day of Resurrection (cf. 23:112–114). Their God-conscious manners shine through: they defer the question of time to Allah, they look for the purest (azkā, also "most lawful") food, and they urge caution and gentleness (talaṭṭuf) to avoid detection. Even in crisis, taqwā governs their choices.
20
Al-Kahf 18:20
Fear of Being Forced Back
إِنَّهُمْ إِن يَظْهَرُوا۟ عَلَيْكُمْ يَرْجُمُوكُمْ أَوْ يُعِيدُوكُمْ فِى مِلَّتِهِمْ وَلَن تُفْلِحُوٓا۟ إِذًا أَبَدًا
Translation
"'For if they come to know of you, they will stone you or force you back into their religion, and then you will never succeed.'"
📚
Tafseer — Maududi
Their deepest fear is not death by stoning but being dragged back into disbelief — for losing one's faith is the only true and permanent failure ("you will never succeed"). The believer weighs every danger against this one ultimate loss. Notably, they still assumed the persecuting regime was in power, unaware that 300 years had already changed everything.
21
Al-Kahf 18:21
Their Discovery · The Hour Is True
وَكَذَٰلِكَ أَعْثَرْنَا عَلَيْهِمْ لِيَعْلَمُوٓا۟ أَنَّ وَعْدَ ٱللَّهِ حَقٌّ وَأَنَّ ٱلسَّاعَةَ لَا رَيْبَ فِيهَآ إِذْ يَتَنَٰزَعُونَ بَيْنَهُمْ أَمْرَهُمْ ۖ فَقَالُوا۟ ٱبْنُوا۟ عَلَيْهِم بُنْيَٰنًا ۖ رَّبُّهُمْ أَعْلَمُ بِهِمْ ۚ قَالَ ٱلَّذِينَ غَلَبُوا۟ عَلَىٰٓ أَمْرِهِمْ لَنَتَّخِذَنَّ عَلَيْهِم مَّسْجِدًا
Translation
"Thus did We disclose them to the people, that they might know that Allah's promise is true and that there is no doubt about the Hour. [Remember] when they disputed among themselves about their affair and said, 'Build a structure over them — their Lord knows best about them.' Those who prevailed said, 'We will surely take over them a place of worship.'"
📚
Tafseer — Ibn Kathir & Maududi
The whole purpose of the awakening is stated plainly: so that people would know Allah's promise is true and the Hour beyond doubt. The sleepers are a tangible, dated proof of resurrection. Ibn Kathir notes the people's later resolve to "build a place of worship over them" reflects a practice the Prophet ﷺ warned against — taking graves of the righteous as mosques. The Quran reports it as history, not as endorsement; the Sunnah forbids building masjids over graves.
Their Number · The Etiquette of the Unseen · 22
22
Al-Kahf 18:22
Their Number — Allah Knows Best
سَيَقُولُونَ ثَلَٰثَةٌ رَّابِعُهُمْ كَلْبُهُمْ وَيَقُولُونَ خَمْسَةٌ سَادِسُهُمْ كَلْبُهُمْ رَجْمًۢا بِٱلْغَيْبِ ۖ وَيَقُولُونَ سَبْعَةٌ وَثَامِنُهُمْ كَلْبُهُمْ ۚ قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌ ۗ فَلَا تُمَارِ فِيهِمْ إِلَّا مِرَآءً ظَٰهِرًا وَلَا تَسْتَفْتِ فِيهِم مِّنْهُمْ أَحَدًا
Translation
"Some will say they were three, the fourth their dog; and some will say five, the sixth their dog — guessing at the unseen; and some will say seven, the eighth their dog. Say: 'My Lord knows best their number. None knows them except a few.' So do not argue about them except with clear argument, and do not ask any of them about them."
📚
Tafseer — Maududi
The subtle grammar teaches an etiquette of the unseen. The first two opinions are dismissed as rajman bi-l-ghayb — "hurling guesses at the unseen" — but the third ("seven, and their dog the eighth") is left without that rebuke, hinting it is correct. The directive to the Prophet ﷺ: do not be drawn into pointless disputes over details that carry no benefit, and do not consult those who only speculate. Focus on the lesson, not the trivia.
Never Say "Tomorrow" Without "In Sha Allah" · 23–26
23
Al-Kahf 18:23
Never Say "I Will Do It Tomorrow"…
وَلَا تَقُولَنَّ لِشَا۟ىْءٍ إِنِّى فَاعِلٌ ذَٰلِكَ غَدًا
Translation
"And never say of anything, 'I will surely do that tomorrow,'"
📚
Tafseer — Ibn Kathir
Revealed in connection with the story: when the Prophet ﷺ was asked the test-questions, he said he would answer "tomorrow" without adding "in shā' Allāh," and revelation paused for several days. The verse teaches every believer that the future is wholly in Allah's hand — no plan should be voiced as a certainty independent of His will.
24
Al-Kahf 18:24
…Without Saying "In Sha Allah"
إِلَّآ أَن يَشَآءَ ٱللَّهُ ۚ وَٱذْكُر رَّبَّكَ إِذَا نَسِيتَ وَقُلْ عَسَىٰٓ أَن يَهْدِيَنِ رَبِّى لِأَقْرَبَ مِنْ هَٰذَا رَشَدًا
Translation
"except [adding], 'if Allah wills.' And remember your Lord when you forget, and say, 'Perhaps my Lord will guide me to what is nearer than this to right conduct.'"
📚
Tafseer — Maududi
Two lessons: tie every intention to in shā' Allāh, and if you forget, remember Allah when you remember — which scholars say even permits saying "in shā' Allāh" later, upon recollection. The closing du'a models humility: ask Allah to guide you to something even better and closer to right guidance than your own plan.
25
Al-Kahf 18:25
Three Hundred Years, and Nine
وَلَبِثُوا۟ فِى كَهْفِهِمْ ثَلَٰثَ مِا۟ئَةٍ سِنِينَ وَٱزْدَادُوا۟ تِسْعًا
Translation
"And they remained in their cave three hundred years, and add nine."
📚
Tafseer — Ibn Kathir
Three hundred solar years correspond to roughly three hundred and nine lunar years — hence "and add nine." Ibn Kathir reads this as Allah reporting their duration, immediately followed (v.26) by the reminder that the final, exact knowledge belongs to Him alone. The figure is precise enough to prove the miracle, while the surah refuses to let the number become a distraction from the meaning.
26
Al-Kahf 18:26
Allah Alone Knows the Unseen
قُلِ ٱللَّهُ أَعْلَمُ بِمَا لَبِثُوا۟ ۖ لَهُۥ غَيْبُ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ ۖ أَبْصِرْ بِهِۦ وَأَسْمِعْ ۚ مَا لَهُم مِّن دُونِهِۦ مِن وَلِىٍّ وَلَا يُشْرِكُ فِى حُكْمِهِۦٓ أَحَدًا
Translation
"Say: 'Allah knows best how long they remained.' To Him belongs the unseen of the heavens and the earth. How well He sees and hears! They have no protector besides Him, and He shares His rule with no one."
📚
Tafseer — Maududi
The passage closes by returning every thread to Allah: the exact duration, the unseen of the heavens and earth, and absolute sovereignty are His alone. "How well He sees and hears!" is an expression of wonder at the perfection of His perception — nothing escapes Him. And "He shares His rule with none" seals the surah's central theme of Tawhid: in knowledge, in protection, and in judgment, there is no partner with Allah.
🕋
The Lesson — The Fitnah of Faith
The People of the Cave model the believer's response to the trial of faith: hold firmly to Tawhid, withdraw from corruption when you cannot change it, entrust your affair to Allah, and let Him handle what you cannot. Their reward was not merely survival but becoming an eternal sign — proof to every generation that Allah preserves those who flee to Him, and that resurrection is certain.
🕌
Supporting Hadith
"Whoever memorises ten verses from the beginning of Surah Al-Kahf will be protected from the Dajjal."
Sahih Muslim · Narrated by Abu Ad-Darda — the opening ten verses include this passage's prologue
"Whoever reads Surah Al-Kahf on the day of Jumu'ah, a light will shine for him between the two Fridays."
Narrated by Abu Sa'id Al-Khudri (al-Hakim, al-Bayhaqi) — the weekly Sunnah of reciting Al-Kahf
✦ Key Takeaways & Lessons — Al-Kahf 9–26
Timeless principles from the story of the People of the Cave
1
The Trial of Faith Comes First: Al-Kahf's opening story answers the hardest fitnah — staying true to Allah when the whole society pulls the other way. The cure is to hold to Tawhid whatever the cost (Ayat 13–14).
2
Begin with Du'a, Not a Plan: The youths' first act was to ask Allah for mercy and a guided outcome (18:10). Entrust your affair to Him before you strategise — memorise their supplication.
3
Allah Steadies the Heart That Stands: "We bound up their hearts when they stood up" — steadfastness (thabāt) is granted to those who resolve to stand for the truth at real risk (Ayah 14).
4
Faith Grows When You Act on It: "They believed… and We increased them in guidance." Every step toward Allah is met with more light (Ayah 13).
5
Demand Evidence from Falsehood: "Why do they not bring a clear authority?" False worship can never produce real proof; to assign divinity without it is the greatest wrong (Ayah 15).
6
Withdraw for Allah, Find Mercy: When a society can't be reformed and endangers your faith, withdrawing for Allah's sake brings His mercy and ease — the dark cave became a door to relief (Ayah 16).
7
Allah Is the Only Guide: "Whomever Allah guides is guided; whomever He leaves astray has no protecting guide." Guidance is His gift — ask for it constantly (Ayah 17).
8
Three Centuries Felt Like a Day: The sleepers thought they'd rested "a day or part of a day" — exactly how the dead will feel at the Resurrection. Their awakening is living proof the Hour is true (Ayat 19, 21).
9
Taqwa Even in Crisis: Hunted and afraid, they still sought the purest food and acted with caution and gentleness. God-consciousness governs the smallest choices (Ayah 19).
10
Say "In Sha Allah": Never declare the future as yours alone (18:23–24). And don't waste energy on trivia of the unseen — like their exact number — when the lesson is what matters (Ayah 22).