The Pen - 68:47 Or is the knowledge of the past and the future with them and they record it?
To Allah belongs the knowledge of the past and the future:
The Cattle/6:59 He holds the key to the secrets. None but He knows them. He knows whatever is in the land and the sea. Not even a leaf falls without His knowledge. There is not a grain in the darkness of the earth, wet or dry, that is not recorded in a clear Book.

Luqman/31:34 With Allah is the knowledge of the Hour (the last hour of the world). He sends down the rain and knows what is in the wombs. No one knows what will happen to him tomorrow, nor does anyone know where he will die. Allah is All-Knowing, All-Knowing.

The Ants/27:65 "Say, "No one in the heavens and the earth knows the future except Allah. They do not even realize when they will be resurrected."