Well, if you read much of what I write you already know that I am not going to take the conventional view of that question. It seems to me to be a waste of time to just repeat the views of others. That is not to say the views of others are not correct, but sometimes, viewing a question from a different angle, we can gain understanding. There is no gain from always studying scripture and expecting the same outcome.
The Bible states that there is nothing impossible for God (Mat 19:26, Mark 10:27, and Luke 1:37) and then says it is impossible for God to lie! (Heb 6:18) So, which is correct? Can God lie, or can He not lie?
As I understand, everything is possible for God, but if He lied He would cease to be God. (Psa 31:5 and Isa 65:16) If He lied then He could not be the God of truth.
Because I believe there is nothing impossible with God and there are verses that indicate God did not know before hand the outcome of some act, then it only seems logical that He hid the outcome from Himself.
It would not be consistent with the belief that nothing is impossible with God and then say He cannot hide something from Himself.
So, I do not believe God knows everything before it happens, and I will attempt to explain that belief, as I believe Scripture indicates this concept.
I believe, as I have said in a previous post, that we are here to be tested. I think it is a real test and being a real test the outcome cannot be known. If the result of the test is known it would not be a test, only an account. It would be history, before it happened!
If you can accept this concept, then you can understand some of Scripture that indicates that God did not know what man would do, even though He could have looked into the future and would have seen it.
God hates sin and therefore, I believe He does not look at it. After sin has been committed it cannot be hidden, it is there for all to see, and it can no longer be hidden from anyone.
God asked Adam and Eve if they had eaten from the tree that He commanded them not to eat from. He did not say that He knew they would eat from the tree. He even asked them if someone had told them that they were naked. If He had looked at their sin beforehand He would not have asked these questions.
Then, before the great flood, mankind grieved God with all of their sin and it filled His heart with pain. If God knew that man would become so wicked would it have filled His heart with pain? Would God have hurt Himself for no reason?
One might say that the time before the great flood was a failed experiment, but it was not God that failed, but man failed. If God had known the outcome of that test, would the test have been necessary?
Then there is the account of Abraham and when God tested him. God did not say to Abraham that He knew that he would complete the sacrifice of his son, but He said “Now I know that you fear God, because you have not withheld from me your son, your only son.”.
Then I consider the present time and for that matter all of time. It would be cruel to give life to someone that was already condemned to Hell. Our Father is anything but cruel and therefore would not do such a thing. If God knew our sin before it was committed, and did not stop us, we could rightly accuse Him of not loving most of those He gave life to. That would not be consistent with His nature and therefore I cannot accept the notion that He knows sin, before it happens.
My life is not a test for God, but a test for me and your own life is a test for you. It is a true and fair test, just as it must be. We must make every effort to pass the test.