Experiment
Try it for yourself.
Right now, this minute, exert your free will.
Do something, anything at all, that you don't think God could have possibly known you were going to do.
Can you do it? Can you surprise God?
If you can, then God is not omniscient - he is not all-knowing. And if...