Many have argued here if God knows all. Some say no....or he would have to have known the outcome of his creation and he wouldn't have continued. He chose not to know. But think about this.
The 19th chapter of Genesis is the famous story of Sodom, Gomorrah, and Lot. This narrative begins with two angels of the Lord arriving at Sodom (Gen. 19:1), which city the Lord will soon destroy because its people fornicate (Jud. vs. 7), unless he finds at least ten righteous people living there (Gen. 18:32).
[Earlier in Gen. 18:20-21, the Lord turns a phrase curiously. In explaining his intentions to Abraham concerning Sodom and Gomorrah, the Lord seems to admit to ignorance of the situation in those cities:
And the Lord said, Because the cry of Sodom and Gomorrah is great, and because their sin is very grievous; I will go down now, and see whether they have done altogether according to the cry of it, which is come unto me; and if not, I will know. (my italics)
In no uncertain terms, the Lord confesses to not knowing, even as he speaks, just how unrighteous Sodom and Gomorrah are. He is going down to "see", to ascertain, the degree of the two cities' sinfulness, because he does not know. Punctuating these words, the Lord then states plainly that he will know, meaning, of course, that he does not know at present. The theological conundrum arising from this confession is self-evident: how could God be omniscient and unaware of something simultaneously?] Makes ya wonder eh?