Prediction and knowing are two different things. Based on past experience, I can predict pretty confidently that the sun will rise tomorrow, but I won't know it will until it does. God, if God exists, could predict much more accurately than me, and much further ahead, because of God's absolute knowledge of the present and past.