From Genesis 22: God learns:
Guess what. God does not know the truth of those statements either, until we are tested. We must not pass over the critical language of God ( = The Angel of Yahweh2):
Genesis 22:12, NRSV
He said, “Do not lay your hand on the boy or do anything to him; for now I know that you fear God, since you have not withheld your son, your only son, from me.”Note the mix of first and second person. This “angel of the LORD” is reporting what God knows and what God just learned.
The only way this passage makes sense is that God knew something after an event that he did not know before the event.
There is a little saying that goes like this: I’m not a judge of the sheep but I am a fruit inspector (Matthew 7:15-20). God is also a fruit inspector.