A hallmark of most major religions is that God is omniscient, that he knows everything. He knows the future as well as the present and the past. This has spawned many an argument over the extent of free will.
Must read