Great is our Lord, and of great power: his understanding is infinite. (Psalm 147:5 KJV)
Because God is the infinite and supreme Being, His knowledge is unlimited. He knows absolutely everything. The common theological terminology for this is omniscience, which comes from the Latin omni, meaning all, and sciens, meaning knowledge. Scripture tells us that God’s knowledge is perfect knowledge; He knows everything.
God is different in being than we are, and as such, the nature of His knowledge is different from ours. He inherently knows everything. His knowledge isn’t learned; it doesn’t come from outside sources or from observation or experience, or through the process of reasoning. God doesn’t learn, because He knows everything. The Bible asks if anyone will teach God, or if He has need of a counselor. The answer is that He doesn’t need counselors or teachers. His knowledge is infinite.
Unlike God, we gain knowledge by learning—we take in information from outside of ourselves, one thing after another, and this information is added to our knowledge base. We know much more than we are conscious of at any given time, as most of what we know lies in our subconscious, and when we need it, we mentally access it and it comes back to mind.
God’s knowledge is different in that His knowledge is always before Him. He doesn’t have to recall it. God knows all things and is always conscious of all. He doesn’t have to call up information from His subconscious. His is perfect knowledge. His knowledge and ways of thinking completely transcend ours. [1]
Since God is omniscient, He innately knows all things—this means He does not go through the mental processes that finite beings do of “figuring things out. - Kenneth Keathley
[1] Anchor God’s Omniscience