Al-Kahf - 18:91

كَذَلِكَ وَقَدْ أَحَطْنَا بِمَا لَدَيْهِ خُبْرًا
[18:91]
Even so! and We had a full knowledge of what he had.
(He left them) as they were: We completely understood what was before him.
So (it was). And We knew all concerning him.