Praise Allah, the One who create all things and protect them from any danger. His protection shines through the story of the companions of the cave (As Haabu l-Kahf). Wonderfully, Allah Himself narrated the story in the Qur’an.
In case you have not read the first part of the story of the Companions of the Cave, read: The Story of the Companions of the Cave – Part 1.
To summarize the first part, the believers enter the cave and the disbelievers sealed it, after which Allah make the companions of the cave slept off for many years. When they wake up, they sent one of them out to buy lawful food. And Allah said to Prophet Muhammed (PBUH) that the story of the companions of the cave was a lesson and a sign to show everyone, that the day of Resurrection will surely happen.
Continue with part two of the story
The reason for the sending down of the story of the Companions of the Cave and the information regarding Dhul-Qarnain was, according to what has been reported by Muhammad Ibn Ishaq in his Seerah and by others was that Quraish sent a message to the Jews, asking them about matters with which they might test the Messenger of Allah (Peace and Blessings of Allah be upon him) and questions that they might ask him, in order to see what his answer might be.
The Jews said, “Ask him about people who went out in the past and it is not known what they did. And ask him about a man who travelled throughout the Earth. And (ask him) about the Spirit.”
So Allah, Most High, revealed: ‘And they ask you (O, Muhammad) concerning the Rooh (the Spirit)} – Soorah Al-Isra’ 17:85.
In Another Verse: ‘And they ask you about Dhul-Qarnain’ – Soorah Al-Kahf 18:83. Here Allah says, ‘Do you think that the people of the cave and the Inscription (the news or the names of the people of the cave) were a wonder among Our Signs? – Soorah Al-Kahf 18:9.
That is, it is not a great wonder, compared with the information that We have conveyed to you, the clear Signs and the strange wonders. And the Arabic word ‘kahf’ means a cavern in a mountain.
In short, the story was sent down as per the question the Quraish were preparing the ask the prophet Muhmmed (PBUH) and Allah the wisest of the wise, and the One Who don’t begining and ending id not for Him, told the story of the people of the Cave to the Prophet (PBUH).
That said, the story is not finished, you can read the part 3 to see what happen next.
Part 3: Not available yet.