God has no need to learn or teach Himself anything, for He knows everything in one simple act. Not only does He know everything that is in existence, but he also knows everything that is possible. When speaking of the present, we call this the knowledge of God; if we speak of the past, we speak of God’s remembrance of all things; when we speak of the future, we speak of His foreknowledge. His omniscience concerns the universality of the objects of His knowledge, in that He knows all things. The Bible says that God is a God of knowledge.
Talk no more so exceeding proudly; Let not arrogance come out of your mouth; For Jehovah is a God of knowledge, And by him actions are weighed. (1 Samuel 2:3)
God’s knowledge is intuitive, not discursive; that is, it is not obtained by reflection or deduction. The Lord did not create this universe and then look out upon it and reason from His creation to the knowledge of it, or indeed of anything else. Intuition is knowledge that He possesses eternally as the Divine. He needs not reason conclusions because He knows all of the conclusions that there ever could be.
It is in the knowledge of Himself that God exceeds all of His creatures, because while we know Him, we do not know Him with the knowledge that God knows Himself. He is incomprehensible so far as we are concerned, in that we can never know Him fully because we perpetually learn things about the Lord God. The knowledge of God is an inexhaustible knowledge for us. If God did not have total knowledge of Himself, He would be under the greatest ignorance of all; He would be unaware of the most excellent object in all of existence—Himself. Since God is knowledgeable, He knows Himself above all things. If He did not know Himself, He could not create or govern this universe and everything therein. Some ask the question, “Can God foreknow a human’s free action?” In 1 Samuel, scripture teaches the divine foreknowledge of contingent events.
Then said David, O Jehovah, the God of Israel, thy servant hath surely heard that Saul seeketh to come to Keilah, to destroy the city for my sake. Will the men of Keilah deliver me up into his hand? will Saul come down, as thy servant hath heard? O Jehovah, the God of Israel, I beseech thee, tell thy servant. And Jehovah said, He will come down. Then said David, Will the men of Keilah deliver up to me and my men into the hand of Saul? And Jehovah said, They will deliver thee up. Then David and his men, who were about six hundred, arose and departed out of Keilah, and went whithersoever they could go. And it was told Saul that David was escaped from Keilah; and he forbare to go forth. (I Samuel 23:10-13)