That depends on which God you are talking about.
People who embrace a set of views known as “open theism” like to say that God does not know the future (either his own, or that of his world, or both – there are different versions).
I’m reading Isaiah 41-44 again, and am freshly struck by what is here. God sets out one test or characteristic that will distinguish him, the true God, from an idol or false God.
God can tell you what is going to happen; an idol cannot
Here is the test, for example, in 44:7
“Who is like me? Let him proclaim it.