Mr. P, I can demonstrate from the Bible that God has this foreknowledge. When Jesus came across a crowd wanting to stone a woman who committed adultery, He asked anyone from the crowd to throw the first stone if they had not committed such sin.
Jjw: We have an important point of departure here. The God of the Bible to which I refer is the Hebrew God of the Old Testament. Jesus arrives with the New Testament and did not claim to be God. He implied that he was the son of God, only.

Also when Herod wanted to murder Jesus, God sent His angel to warn Joseph. How could he have done this if he did not know beforehand what Herod had intended. Is this then not the same God from the Old Testament?