وَتَرَی
الشَّمْسَ
اِذَا
طَلَعَتْ
تَّزٰوَرُ
عَنْ
كَهْفِهِمْ
ذَاتَ
الْیَمِیْنِ
وَاِذَا
غَرَبَتْ
تَّقْرِضُهُمْ
ذَاتَ
الشِّمَالِ
وَهُمْ
فِیْ
فَجْوَةٍ
مِّنْهُ ؕ
ذٰلِكَ
مِنْ
اٰیٰتِ
اللّٰهِ ؕ
مَنْ
یَّهْدِ
اللّٰهُ
فَهُوَ
الْمُهْتَدِ ۚ
وَمَنْ
یُّضْلِلْ
فَلَنْ
تَجِدَ
لَهٗ
وَلِیًّا
مُّرْشِدًا
۟۠
3

Commentary

In these verses, Allah Ta` ala has told us about three states of the People of Kahf. All three are indeed unique and it was the karamah, a matter of wonder, that manifested itself in an extraordinary way around these people devoted to Allah (a thing of wonder that manifests itself at the hands of a prophet of Allah is called a mujizah or miracle, while if it appears at the hand of some other pious persons, it is called 'Karamah' ).

First of all, to be overtaken by continuous sleep for a long time and to stay alive in that state without eating and drinking is by itself a matter of wonder, and certainly contra-habitual and extraordinary. Its details will appear in the verses that follow. Given here is one state of their long sleep, that is, Allah Ta’ ala had arranged for their protection in the Cave in a way that the Sun would pass by them morning and evening but would not shine over their bodies inside the Cave. The advantages of the sunshine passing by them were things like the stabilization of the traces of life, moderation and balancing of the effects of wind, chill and heat etc. And then, the Sun not hitting their bodies directly may have also been a factor in keeping their bodies and dress protected.

This arrangement of keeping them shielded from direct sunlight could also be conceived if the cave lies situated in a particular structural position and the opening of its entrance happens to face south or north in a way that sunlight does not get in there naturally. Ibn Qutaibah went to the trouble of making elaborate mathematical calculations to determine the peculiar location of this Cave precisely in terms of latitude and longitude. (Mazhari) Contrary to this was the approach of al-Zajjaj who said that the staying of sunshine away from them was not because of any inherent situation or formation of the Cave, instead, it was an extraordinary phenomenon manifested as a karamah. It seems when it was said: ذَٰلِكَ مِنْ آيَاتِ اللَّـهِ (That is one of the signs of Allah) at the end of the verse, it was obviously there to prove that this arrangement of protection from the Sun was not the outcome of any particular formation or location of the Cave. Instead, it was a sign of the perfect power of Allah Ta` ala. (Qurtubi)

To put it candidly, Allah Ta` ala had it all arranged for them that sunlight will not reach their bodies. It may have been caused through its particular formation or location or through the barrier of a cloud or something similar when the Sun would start shining, or the very rays of the Sun would be moved away from them in an extraordinary manner. All these probabilities exist within the verse. There is no need to insist upon fixing any of these as the absolute reality.