The hebrews believed that God was in charge of everything and they feared him. Not scared, just they were astounded by his power. So yes, I think they did believe God knows all things. You can find it many times in the bible where it says "The God who knows all things." Hope this helps!