Surah Al-Hijr

15:24

وَلَقَدْ عَلِمْنَا ٱلْمُسْتَقْدِمِينَ مِنكُمْ وَلَقَدْ عَلِمْنَا ٱلْمُسْتَـْٔخِرِينَ

And We have already known the preceding [generations] among you, and We have already known the later [ones to come].

Tafsir 15:24

I know of who was born and died before you, and of those who will be born and die after. Nothing of that is hidden from Me.