Al-Kahf 18:10
إِذْ أَوَى ٱلْفِتْيَةُ إِلَى ٱلْكَهْفِ فَقَالُوا۟ رَبَّنَآ ءَاتِنَا مِن لَّدُنكَ رَحْمَةًۭ وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًۭا
[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."
Al-Kahf 18:13
نَّحْنُ نَقُصُّ عَلَيْكَ نَبَأَهُم بِٱلْحَقِّ ۚ إِنَّهُمْ فِتْيَةٌ ءَامَنُوا۟ بِرَبِّهِمْ وَزِدْنَٰهُمْ هُدًۭى
It is We who relate to you, [O Muhammad], their story in truth. Indeed, they were youths who believed in their Lord, and We increased them in guidance.
Al-Kahf 18:19
وَكَذَٰلِكَ بَعَثْنَٰهُمْ لِيَتَسَآءَلُوا۟ بَيْنَهُمْ ۚ قَالَ قَآئِلٌۭ مِّنْهُمْ كَمْ لَبِثْتُمْ ۖ قَالُوا۟ لَبِثْنَا يَوْمًا أَوْ بَعْضَ يَوْمٍۢ ۚ قَالُوا۟ رَبُّكُمْ أَعْلَمُ بِمَا لَبِثْتُمْ فَٱبْعَثُوٓا۟ أَحَدَكُم بِوَرِقِكُمْ هَٰذِهِۦٓ إِلَى ٱلْمَدِينَةِ فَلْيَنظُرْ أَيُّهَآ أَزْكَىٰ طَعَامًۭا فَلْيَأْتِكُم بِرِزْقٍۢ مِّنْهُ وَلْيَتَلَطَّفْ وَلَا يُشْعِرَنَّ بِكُمْ أَحَدًا
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.
Al-Kahf 18:22
سَيَقُولُونَ ثَلَٰثَةٌۭ رَّابِعُهُمْ كَلْبُهُمْ وَيَقُولُونَ خَمْسَةٌۭ سَادِسُهُمْ كَلْبُهُمْ رَجْمًۢا بِٱلْغَيْبِ ۖ وَيَقُولُونَ سَبْعَةٌۭ وَثَامِنُهُمْ كَلْبُهُمْ ۚ قُل رَّبِّىٓ أَعْلَمُ بِعِدَّتِهِم مَّا يَعْلَمُهُمْ إِلَّا قَلِيلٌۭ ۗ فَلَا تُمَارِ فِيهِمْ إِلَّا مِرَآءًۭ ظَٰهِرًۭا وَلَا تَسْتَفْتِ فِيهِم مِّنْهُمْ أَحَدًۭا
They 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 Muhammad], "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."
Choosing Sincerity Over Social Pressure
The opening movement of the narrative in Surah Al-Kahf 18:9–16 introduces a small group of young believers who find themselves at odds with the dominant culture of their city. Notice how the Qur’anic account begins in 18:9 by questioning whether the companions of the cave and the inscription were the most astonishing of God’s signs. Even before recounting what happened inside the mountain, the text frames their experience within a wider horizon of creation. Wonders are not scarce in a universe sustained at every moment by its Creator; rather, the story invites the reader to look beneath an extraordinary miracle and recognize the quiet, resolute faith that preceded it.
In 18:13–14, the Qur’an describes these individuals simply as youths who believed in their Lord and whom God consequently increased in guidance. Their society had adopted deities alongside God without any clear authority or proof, and remaining compliant within that environment meant compromising the core truth of monotheism. When they stood up to affirm that their Lord is the Lord of the heavens and the earth, their hearts were strengthened so that they would not utter anything outrageous against the truth. This moral clarity did not come from political power or worldly status. It emerged from an inward refusal to trade certainty for social convenience, a theme that echoes across prophetic narratives such as the search for truth in the story of Prophet Ibrahim.
The Prayer at the Threshold of the Cave
Realizing that they could no longer practice their faith openly without facing persecution or forced apostasy, the youths took counsel among themselves in 18:16 and decided to withdraw from their people and everything worshipped besides God. Yet their departure was not an act of despair or cynical isolation. As they entered the narrow shelter of the mountain in 18:10, they turned immediately to supplication, asking their Lord to grant them mercy directly from His presence and to prepare for them a sound, upright course in their affair.
This brief prayer at the cave’s entrance reveals a balance between human action and reliance upon God. Outwardly, a rocky cavern offers neither food nor long-term security; it is an enclosure of stone that could easily become a trap. Inwardly, however, the believers recognized that divine mercy can transform the most constricted physical space into a sanctuary. Instead of demanding a specific worldly outcome, they asked for mercy and right guidance in whatever lay ahead. Readers who reflect on how supplication steadies the heart during times of constriction will find a closely related emphasis in our reflection on patience and ease in the Qur’an and the broader theme of inner peace.
Divine Care During the Long Sleep
Once the youths settled inside the cavern, the narrative shifts in 18:11–12 and 18:17–18 from human initiative to unseen divine preservation. God cast a veil of deep sleep over their hearing for a great number of years, holding them in stillness before awakening them to show which of the two parties could best calculate the duration of their stay. Even while they were unconscious of the passing decades, every physical detail of their environment was arranged for their protection.
In 18:17, the text draws our eyes to the movement of the sun: as it rose, it inclined away from their cave to the right, and when it set, it passed them by on the left, while they lay in a spacious part of the interior. Neither direct scorching heat nor airless dampness harmed them. In 18:18, anyone looking upon them would have thought them awake, as they were turned periodically to the right and to the left while their dog stretched its forelegs at the threshold. Had an observer glimpsed them, that person would have turned back in flight, filled with awe. Without sensationalizing the scene, the Qur’an shows how God guards those who entrust their safety to Him, using sunlight, air, and quiet awe as an invisible shield.
Awakening and the Ethics of Caution
When God awakened them in 18:19–20, their first conversation was remarkably ordinary. They asked one another how long they had remained in the cave, guessing that it had been a day or part of a day before concluding that their Lord knew best how long they had stayed. Nothing in their immediate perception suggested that generations had passed outside the mountain. Immediately, their attention turned to practical necessity: hunger, clean provision, and personal discipline.
They pooled their silver coins and sent one member of their group into the city with three instructions in 18:19: to examine which food in the market was purest, to bring back provision from it, and to conduct himself with gentle caution so that no one would become aware of their presence. As 18:20 explains, they feared that if the authorities of the city discovered them, they would either be stoned to death or coerced back into polytheism, in which case they would never prosper. Even inside a miraculous narrative, the Qur’an highlights everyday mindfulness—caring for the purity of what one consumes and acting with prudence.
A Sign of Resurrection and the Limits of Speculation
In 18:21, the narrative reveals why their presence eventually became known to the townspeople: so that people might recognize that the promise of God is true and that there is no doubt concerning the final Hour. Just as the youths were raised unharmed from centuries of sleep, human beings will be raised for judgment after death. As the people of the city debated how to commemorate them—those who prevailed resolving to establish a place of worship—later generations began to argue over peripheral details.
In 18:22, the Qur’an addresses the habit of guessing at unseen particulars, noting how some say they were three with their dog as the fourth, others say five with their dog as the sixth—guessing at the unseen—while others say seven and their dog the eighth. Rather than validating human obsession with trivia, the verse instructs the reader to say that my Lord knows best their number, and not to argue about them except with clear awareness. This principle is central to reading the Qur’an with context, reminding us never to confuse folklore with revelation, a discipline also explored in the story of Prophet Musa and the wise servant.
Humility Before Time and the Unseen
The passage concludes in 18:23–26 by translating the narrative’s lesson into daily speech. In 18:23–24, the believer is taught never to declare of anything that they will do it tomorrow without adding that it depends on what God wills, and to remember their Lord whenever they forget. Finally, 18:25–26 notes the span of three hundred years with an added nine, before returning the final word to God, who knows best how long they remained and to whom belongs the unseen of the heavens and the earth.
Questions people ask
01Where is the story of the Companions of the Cave found in the Qur’an?
The account is found in Surah Al-Kahf (Chapter 18), verses 9 through 26, where the chapter takes its name directly from the cave (al-kahf) in which the young believers sought shelter.
02Why did the young believers retreat to the cave?
They withdrew from a society that demanded polytheistic worship without evidence, choosing to safeguard their sincere belief in the One God and asking Him for mercy and sound guidance.
03How many people were in the cave according to Surah Al-Kahf?
In verse 18:22, the Qur’an notes that people dispute whether they were three, five, or seven alongside their dog, and instructs believers to leave the exact count to God’s knowledge rather than arguing over secondary details.
04Does the Qur’an identify the exact city or geographical site of the cave?
No. The Qur’anic narrative intentionally leaves the city, era, and personal names unnamed so that readers focus on the spiritual lessons of faith, reliance upon God, and the reality of resurrection.



