Genesis 3:9
"And the Lord God called Adam and said to him, Adam, where are you?"
Does this verse indicate that God is not omniscient?
These verses are actually examples of how a typical Ancient Near Eastern sovereign addressed his subjects (or how any person might address another in an investigatory role). They speak in the form of a question to prompt a response or confession, even when the answer is already fully known.