Allah knows what is [presently] before them and what will be after them, but they do not encompass it in knowledge.
The Saheeh International Quran Translation
يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ وَلَا يُحِيطُونَ بِهِۦ عِلْمًاAllah knows what is [presently] before them and what will be after them, but they do not encompass it in knowledge.