Proverbs 15:3 " The eyes of the LORD are in every place, beholding the evil and the good. "
Genesis 3:8,9 "And they heard the voice of the LORD God walking in the garden in the cool of the day: and Adam and his wife hid themselves from the presence of the LORD God amongst the trees of the garden. And the LORD God called unto Adam, and said unto him, Where art thou? "
These two passages of scriptures appear contradictory when read and understood in a certain way, but such an understanding is not exclusive.
God's omnipresence and omniscience is further attested to in Psalm 139, and those passages do state clearly that God is everywhere present and also that He does know all and can see what no man can observe or look into.
What then is the difficulty with such a passage as Gen 3:8-9? The apparent contradiction "is produced" when the text is understood literally and a certain inference is made. However, when we read these verses carefully, we notice that this passage obviously involves also figures of speech. We do not normally "hear a voice walking", do we? Also, we know from other verses of Scripture that God is not a person with a figure or resemblance as humans have, rather He is spirit (cp John 4:24). When we read here of the LORD God walking in the garden and Adam and Eve trying to hide themselves from Him, then this must have been some kind of special manifestation of God which is spoken of here.
The real difficulty and apparent contradiction is then introduced by assuming and inferring that God asked his question in order to gain information which He did not already know. Sure, God's question could be understood as if He had no idea where Adam and Eve were and He was calling and searching for them but, does it have to be understood this way, or is there an understanding which would not cause such apparent contradiction to other verses?
Questions are not always asked for information and because one does not know something; questions are also at times asked when knowing very well what has happened and what the facts concerning the case are! The question then serves a completely different purpose! Parents will probably easily understand what is recorded here, for they too will have used this means of asking such questions as we can read of here. God quite obviously did not ask the questions because He was in the dark as to what had happened. Rather, by means of these questions He was giving Adam and Eve an opportunity to take an active step in clearing up their wrong doing by admitting their error and asking for forgiveness. By asking these questions God enabled Adam and Eve to freely repent of their wrong doing, or else to firmly establish their transgression and sin.
When we understand the type of question God utilized in His dealing with Adam and Eve right after their transgression, it becomes evident that this passage of Scripture does not question the omniscience of God at all. There is no real contradiction between these passages at all.