What does the Quran say about the People of the Cave?

Verses this study page retrieves:

  • Quran 18:9

    أَمْ حَسِبْتَ أَنَّ أَصْحَـٰبَ ٱلْكَهْفِ وَٱلرَّقِيمِ كَانُوا۟ مِنْ ءَايَـٰتِنَا عَجَبًا

    Or have you thought that the companions of the cave and the inscription were, among Our signs, a wonder? 1

  • Quran 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."

Translation: Saheeh International. Cited study page — retrieved verses and named tafsir only. How answers are checked.