Young believers took refuge in a cave to protect their faith. Allah preserved them through a long sleep and made their awakening a sign of His power.
The story
Choosing faith over their people's worship
The young men believed in their Lord, and Allah increased them in guidance. He strengthened their hearts when they declared their belief and rejected their people's worship of other gods. They withdrew to a cave and asked Allah for mercy and right guidance in their situation. Their account begins with a choice about worship, followed by seeking protection and help from the One in whom they believed.
Allah caused them to sleep in the cave for many years. The passage describes the sun's relation to their resting place, their turning from side to side, and their dog at the entrance. A person seeing them would have been filled with fear. Their safety did not depend on their remaining awake and watchful; Allah preserved them during a period in which they could not protect themselves.
When they awoke, they questioned how long they had stayed and sent one of their number with silver money to obtain food carefully. They feared discovery and being forced back into their people's religion. Allah then made their situation known so that people would recognize the truth of His promise and the resurrection. The passage also restrains speculation about their number and directs knowledge of their stay to Allah.
The young believers did not rely only on withdrawal from danger. They asked Allah for mercy and a rightly guided outcome. Their account joins a practical step to protect faith with prayer, showing that seeking safety and depending on Allah can belong to the same faithful response.
The passage mentions disputes about the sleepers' number but discourages arguing without knowledge. Their story establishes Allah's power and the truth of resurrection. Focusing on details that revelation does not settle can distract from the guidance that the account clearly places before the reader.
The People of the Cave sought Allah's mercy while protecting their faith. Their preservation and awakening point to His power, while the limits placed on speculation teach readers to stay with what revelation establishes.
Summaries of Ibn Kathīr's commentary on the linked āyāt, with authentic ḥadīth noted in the text where used. Verse links open Quran.com text and your chosen translation.