O you who believe! Have fear [and awareness] of Allah, and let each self look to what it has sent forward for tomorrow. Have fear [and awareness] of Allah. Allah is aware of what you do. (Surat al-Hashr, 59:18)
Humanity, bounded by time and space, can be aware of only what is visible. Our inability to step outside of these boundaries is one of our greatest weaknesses.
Allah, Who created humanity as well as space and time, is not bound by these concepts. Allah, Who is exalted above anything, naturally is aware of all that takes place in the universe, regardless of time or location. He knows how many stars are in a galaxy located millions of light years away, each celestial body's orbit as well as the information hidden inside a seed lying underground.
Allah also knows everything about people's lives: their actions, where they were born and where they will die, and for what purpose they strove. He even knows such small details as when they cried or laughed, as well as their most secret thoughts, for He created them. The Qur'an states:
Those who are tight-fisted with the bounty Allah has given them should not suppose that that is better for them. No indeed, it is worse for them! What they were tight-fisted with will be hung around their necks on the Day of Rising. Allah is the inheritor of the heavens and Earth, and is aware of what you do. (Surah Al ‘Imran, 3:180)
Eyesight cannot perceive Him, but He perceives eyesight. He is the All-Penetrating, the All-Aware. (Surat al-An‘am, 6:103)
Put your trust in the Living, Who does not die, and glorify Him with praise. He is well aware of the wrong actions of His servants. (Surat al-Furqan, 25:58)
Truly Allah has knowledge of the Hour, sends down abundant rain, and knows what is in the womb. And no self knows what it will earn tomorrow or in which land it will die. Allah is All-Knowing, All-Aware. (Surah Luqman, 31:34)