Say, "Allāh 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."
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.