نَّحْنُ نَقُصُّ عَلَيْكَ نَبَأَهُم بِٱلْحَقِّ ۚ إِنَّهُمْ فِتْيَةٌ ءَامَنُوا۟ بِرَبِّهِمْ وَزِدْنَـٰهُمْ هُدًى ﴿13﴾ وَرَبَطْنَا عَلَىٰ قُلُوبِهِمْ إِذْ قَامُوا۟ فَقَالُوا۟ رَبُّنَا رَبُّ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضِ لَن نَّدْعُوَا۟ مِن دُونِهِۦٓ إِلَـٰهًا ۖ لَّقَدْ قُلْنَآ إِذًا شَطَطًا ﴿14﴾
13 We narrate unto thee their story with truth. Lo! they were young men who believed in their Lord, and We increased them in guidance. 14 And We made firm their hearts when they stood forth and said: Our Lord is the Lord of the heavens and the earth. We cry unto no Allah beside Him, for then should we utter an enormity.
Al-Kahf 18:13–14 on Quran.com · Pickthall’s translation
The first story in Surah al-Kahf is about a group of young men. They lived under a king who called people to worship him, and they faced a choice. They could bow to him, or they could leave and take refuge in a cave, staying devoted to Allah alone. They chose the cave. Allah describes them simply: they were young men who believed in their Lord, and We increased them in guidance (al-Kahf 18:13).
The first lesson is that every generation of young people is tested in its faith. That was true for them, and it is true now. The challenges young Muslims face today are different from the ones their parents faced growing up. But the fact of the test does not change. Study Islamic history and you will find it in every era: the young are challenged, and the test shows how strong their faith really is.
If you are young and you have ever asked, why is Allah putting all this on me?, or wondered whether you can hold on to your iman in the world you live in, this story is for you. The test is not a sign that something has gone wrong. It is promised and expected. Some pass it and some fail it. The young men of the cave passed, and Allah says He made their hearts firm when they stood up and declared their Lord (al-Kahf 18:14).
The second lesson is in the cave itself. The young men went somewhere they could be protected: take refuge in the cave, and your Lord will spread His mercy over you (al-Kahf 18:16). So ask yourself: to protect your faith, what is your cave? Where do you go when the pressure around you pulls the other way? For them it was a real cave in a hillside. For you it may look very different.
The surah answers that question itself, near the end of the story. Allah tells the Prophet ﷺ: keep yourself patiently with those who call on their Lord morning and evening, seeking His face (al-Kahf 18:28). That is the cave for a young person today: the company of righteous people. Friends who remember Allah, who pray, who pull you up rather than down. Find them, and stay with them, even when it takes patience.
This is a lesson for parents too. Many children from practising homes go astray, and their parents say, I don’t understand it, we pray, we do everything right. Often the cause is not the home at all. It is the friends the child spends time with at school or on the street, and the parents not knowing who those friends are. Your own practice matters, but so does knowing your child’s company, and helping them find good company of their own.
So the story leaves young people with two things to hold. First, the test is coming, for every generation, and it is not a punishment. Second, you need a cave: people around you who call on Allah morning and evening. If you want help building that kind of life, how to behave as a Muslim is a good companion, and the young men’s own dua is worth learning: our Lord, give us mercy from You and set our affair right (al-Kahf 18:10).