قُلِ ٱللَّهُ أَعْلَمُ بِمَا لَبِثُوا۟ ۖ لَهُۥ غَيْبُ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ ۖ أَبْصِرْ بِهِۦ وَأَسْمِعْ ۚ مَا لَهُم مِّن دُونِهِۦ مِن وَلِىٍّۢ وَلَا يُشْرِكُ فِى حُكْمِهِۦٓ أَحَدًۭا٢٦
Say, “Allah knows best how long they remained. To Him belongs [the knowledge of] the unseen of the heavens and earth. How well He sees and how well He hears! They have no protector besides Him, and He shares His command with none.”
[ ↗ Study from physical print edition ]Say, "Allah is most knowing of how long they remained. He has [knowledge of] the unseen [aspects] of the heavens and the earth. How Seeing is He and how Hearing! They have not besides Him any protector, and He shares not His legislation with anyone."
[ ↗ Study from physical print edition ]26. Say - O Messenger: Allah knows best about how long they remained in the cave and He has told us about the period they remained there. No statement can be considered after Allah’s, may He be glorified. To Him alone, may He be glorified, belongs everything hidden in the heavens and on earth. He created and knows all of it. How well He sees! May He be glorified! He sees everything. How well He hears! He hears everything. They have no one to take charge of their matter besides Him. He does not share His rule with anyone. He alone passes judgement.
Say ‘God is more knowledgeable of how long they tarried more knowledgeable than those contending over this issue — and this fact has already been mentioned above verse 19. To Him belongs the Unseen of the heavens and the earth that is to Him belongs the knowledge thereof. How well He sees! namely God — this form is for expressing amazement at something. How well He hears! likewise for expressing amazement. These two expressions are being used metaphorically. What is meant is that nothing can escape God’s sight or hearing. They the inhabitants of the heavens and the earth have no guardian someone to assist them besides Him and He makes none to share in His rule’ for He is Independent without need of a partner.
Yet another question arises here about the People of Kahf. During their time and then within the blessed period of the Holy Prophet ﷺ ، the Jews and Christians had their differences about two things - the number of the People of Kahf and the duration of their sleep in the Cave. The Qur'an does describe both. However, it has done so with a difference. The number was not mentioned explicitly. Rather, only a hint has been given by not refuting the view which was correct. But, the fixed duration was declared in very clear words: وَلَبِثُوا فِي كَهْفِهِمْ ثَلَاثَ مِائَةٍ سِنِينَ وَازْدَادُوا تِسْعًا (And they stayed in their Cave for three hundred years and added nine -25). The reason is that this very remarkable diction of the Qur'an strongly suggests that this debate on the number of the people of Kahf is virtually useless. No worldly or religious issue relates to or depends on it. Yes, this unusual sleep for such a long period of time, being healthy and fit without food and drink and then sitting up in good shape after such a long time is certainly a working model of Resurrection. That there is a Day of Judgment and that there is a Hereafter can be argued on this basis. Therefore, the period of sleep was stated very clearly.People who deny the extraordinary miracles, or people who are in the habit of explaining them away overawed by the objections of modern day Jewish and Christian orientalists, have not spared even the Qur'an. For example, in the case of this verse (25), they have tried to use the explanation of Qatadah as a prop to reject the duration of three hundred nine years as the saying of those very people who were differing among them-selves. But, they have erred. The statement: (for a number of years - 11) which appears in an earlier sentence of the Qur'an cannot be called the saying of anyone other than Allah Ta’ ala! To prove the miraculous nature of the event even this much is sufficient that someone remains asleep for years and years and then rises and sits up all intact, fit and alive. Allah knows best.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿قُلِ اللَّهُ أَعْلَمُ بِما لَبِثُوا﴾ قِيلَ بَعْدَ مَوْتِهِمْ إِلَى نُزُولِ الْقُرْآنِ فِيهِمْ، عَلَى قَوْلِ مُجَاهِدٍ. أَوْ إِلَى أَنْ مَاتُوا، عَلَى قَوْلِ الضَّحَّاكِ. أَوْ إِلَى وَقْتِ تَغَيُّرِهِمْ بِالْبِلَى، عَلَى مَا تَقَدَّمَ. وَقِيلَ: بِمَا لَبِثُوا فِي الْكَهْفِ، وَهِيَ الْمُدَّةُ الَّتِي ذَكَرَهَا اللَّهُ تَعَالَى عَنِ الْيَهُودِ وَإِنْ ذَكَرُوا زِيَادَةً وَنُقْصَانًا أَيْ لَا يَعْلَمُ عِلْمَ ذَلِكَ إِلَّا اللَّهُ أَوْ مَنْ عَلَّمَهُ ذَلِكَ (لَهُ غَيْبُ السَّماواتِ وَالْأَرْضِ). قَوْلُهُ تَعَالَى: ﴿أَبْصِرْ بِهِ وَأَسْمِعْ﴾ أَيْ مَا أَبْصَرَهُ وَأَسْمَعَهُ. قَالَ قَتَادَةُ: لَا أَحَدٌ أَبْصَرُ مِنَ اللَّهِ وَلَا أَسْمَعُ. وَهَذِهِ عِبَارَاتٌ عَنِ الْإِدْرَاكِ. وَيَحْتَمِلُ أَنْ يَكُونَ الْمَعْنَى "أَبْصِرْ بِهِ" أَيْ بِوَحْيِهِ وَإِرْشَادِهِ هُدَاكَ وَحُجَجَكَ وَالْحَقَّ مِنَ الْأُمُورِ، وَأَسْمِعْ بِهِ الْعَالَمَ، فَيَكُونَانِ أَمْرَيْنِ لَا عَلَى وَجْهِ التَّعَجُّبِ. وَقِيلَ. الْمَعْنَى أَبْصِرْهُمْ وَأَسْمِعْهُمْ مَا قَالَ اللَّهُ فِيهِمْ. (مَا لَهُمْ مِنْ دُونِهِ مِنْ وَلِيٍّ) أَيْ لَمْ يَكُنْ لِأَصْحَابِ الْكَهْفِ وَلِيٌّ يَتَوَلَّى حِفْظَهُمْ دُونَ اللَّهِ. وَيَحْتَمِلُ أَنْ يَعُودَ الضَّمِيرُ فِي "لَهُمْ" عَلَى مَعَاصِرِي مُحَمَّدٍ ﷺ مِنَ الْكُفَّارِ. وَالْمَعْنَى: مَا لِهَؤُلَاءِ الْمُخْتَلِفِينَ فِي مُدَّةِ لُبْثِهِمْ وَلِيٌّ دُونَ اللَّهِ يَتَوَلَّى تَدْبِيرَ أَمْرِهِمْ، فَكَيْفَ يَكُونُونَ أَعْلَمَ مِنْهُ، أَوْ كَيْفَ يَتَعَلَّمُونَ مِنْ غَيْرِ إِعْلَامِهِ إِيَّاهُمْ. قَوْلُهُ تَعَالَى: ﴿وَلا يُشْرِكُ فِي حُكْمِهِ أَحَداً﴾ قُرِئَ بِالْيَاءِ وَرَفْعِ الْكَافِ، عَلَى مَعْنَى الْخَبَرِ عَنِ اللَّهِ تَعَالَى. وَقَرَأَ ابْنُ عَامِرٍ وَالْحَسَنُ وَأَبُو رَجَاءٍ وَقَتَادَةُ وَالْجَحْدَرِيُّ "وَلَا تُشْرِكْ" بِالتَّاءِ مِنْ فَوْقٍ وَإِسْكَانِ الْكَافِ عَلَى جِهَةِ النَّبِيِّ ﷺ، وَيَكُونُ قَوْلُهُ "وَلا يُشْرِكُ" عِطْفًا عَلَى قَوْلِهِ: "أَبْصِرْ بِهِ وَأَسْمِعْ". وَقَرَأَ مُجَاهِدٌ "يُشْرِكُ" بِالْيَاءِ مِنْ تَحْتٍ وَالْجَزْمِ. قَالَ يَعْقُوبُ: لَا أَعْرِفُ وَجْهَهُ. مَسْأَلَةٌ: اخْتُلِفَ فِي أَصْحَابِ الْكَهْفِ هَلْ مَاتُوا وَفَنَوْا، أَوْ هُمْ نِيَامٌ وَأَجْسَادُهُمْ مَحْفُوظَةٌ، فَرُوِيَ عَنِ ابْنِ عَبَّاسٍ أَنَّهُ مَرَّ بِالشَّامِ فِي بَعْضِ غَزَوَاتِهِ مَعَ نَاسٍ عَلَى مَوْضِعِ الْكَهْفِ وَجَبَلِهِ، فَمَشَى النَّاسُ مَعَهُ إِلَيْهِ فَوَجَدُوا عِظَامًا فَقَالُوا: هَذِهِ عِظَامُ أَهْلِ الْكَهْفِ. فَقَالَ لَهُمُ ابْنُ عَبَّاسٍ: أُولَئِكَ قَوْمٌ فَنَوْا وَعُدِمُوا مُنْذُ مُدَّةٍ طَوِيلَةٍ، فَسَمِعَهُ رَاهِبٌ فَقَالَ: مَا كُنْتُ أَحْسِبُ أَنَّ أَحَدًا مِنَ الْعَرَبِ يَعْرِفُ هَذَا، فَقِيلَ لَهُ: هَذَا ابْنُ عَمِّ نَبِيِّنَا ﷺ. وَرَوَتْ فِرْقَةٌ أَنَّ النَّبِيَّ ﷺ قَالَ: "لَيَحُجَّنَّ عيسى بن مَرْيَمَ وَمَعَهُ أَصْحَابُ الْكَهْفِ فَإِنَّهُمْ لَمْ يَحُجُّوا بع". ذَكَرَهُ ابْنُ عَطِيَّةَ. قُلْتُ: وَمَكْتُوبٌ فِي التَّوْرَاةِ والإنجيل أن عيسى بن مَرْيَمَ عَبْدُ اللَّهِ وَرَسُولُهُ، وَأَنَّهُ يَمُرُّ بِالرَّوْحَاءِ حَاجًّا أَوْ مُعْتَمِرًا أَوْ يَجْمَعُ اللَّهُ لَهُ ذَلِكَ فَيَجْعَلُ اللَّهُ حَوَارِيَّهُ أَصْحَابَ الْكَهْفِ وَالرَّقِيمِ، فَيَمُرُّونَ حُجَّاجًا فَإِنَّهُمْ لَمْ يَحُجُّوا وَلَمْ يَمُوتُوا. وَقَدْ ذَكَرْنَا هَذَا الْخَبَرَ بِكَمَالِهِ فِي كِتَابِ "التَّذْكِرَةِ". فَعَلَى هَذَا هُمْ نِيَامٌ وَلَمْ يَمُوتُوا إِلَى يَوْمِ الْقِيَامَةِ، بَلْ يَمُوتُونَ قُبَيْلَ السَّاعَةِ.