The Story of the People of Al-Kahf
Here Allah tells us about the story of the people of Al-Kahf in brief and general terms, then He explains it in more detail.
He says;
أَمْ حَسِبْتَ
Do you think, -- O Muhammad --
أَنَّ أَصْحَابَ الْكَهْفِ وَالرَّقِيمِ كَانُوا مِنْ ايَاتِنَا عَجَبًا
that the people of Al-Kahf and Ar-Raqim were a wonder among Our signs!
meaning, their case was not something amazing compared to Our power and ability, for the creation of the heavens and earth, the alternation of night and day and the subjugation of the sun, moon and heavenly bodies, and other mighty signs indicate the great power of Allah and show that He is able to do whatever He wills. He is not incapable of doing more amazing things than the story of the people of the Cave.
Similarly, Ibn Jurayj reported Mujahid saying about,
أَمْ حَسِبْتَ
أَنَّ أَصْحَابَ الْكَهْفِ وَالرَّقِيمِ كَانُوا مِنْ ايَاتِنَا عَجَبًا
(Do you think that the people of Al-Kahf and Ar-Raqim were a wonder among Our signs),
"Among Our signs are things that are more amazing than this."
Al-Awfi reported that Ibn Abbas said;
أَمْ حَسِبْتَ
أَنَّ أَصْحَابَ الْكَهْفِ وَالرَّقِيمِ كَانُوا مِنْ ايَاتِنَا عَجَبًا
(Do you think that the people of Al-Kahf and Ar-Raqim were a wonder among Our signs),
"What I have given to you of knowledge, the Sunnah and the Book is far better than the story of the people of Al-Kahf and Ar-Raqim."
Muhammad bin Ishaq said;
"(It means) I have not shown My creatures a proof more amazing than the story of the people of the Al-Kahf and Ar-Raqim."
Al-Kahf refers to a cave in a mountain, which is where the young men sought refuge.
With regard to the word Ar-Raqim, Al-Awfi reported from Ibn Abbas;
"it is a valley near Aylah."
This was also said (in another narration) by Atiyah Al-`Awfi and Qatadah.
Ad-Dahhak said;
"As for Al-Kahf, it is a cave in the valley, and Ar-Raqim is the name of the valley."
Mujahid said,
"Ar-Raqim refers to their buildings."
Others said it refers to the valley in which their cave was.
Abdur-Razzaq recorded that Ibn Abbas said about Ar-Raqim;
"Ka`b used to say that it was the town."
Ibn Jurayj reported that Ibn Abbas said,
"Ar-Raqim is the mountain in which the cave was."
Sa`id bin Jubayr said,
"Ar-Raqim is a tablet of stone on which they wrote the story of the people of the Cave, then they placed it at the entrance to the Cave."
إِذْ أَوَى الْفِتْيَةُ إِلَى الْكَهْفِ فَقَالُوا رَبَّنَا اتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّيْ لَنَا مِنْ أَمْرِنَا رَشَدًا