Proverbs 1:7 (KJV) The fear of the Lord is the beginning of knowledge:
but fools despise wisdom and instruction.

Or, The chief and principal point of wisdom, as the word here signified; yea, wisdom itself.

Job 28:28 (KJV): And unto man he said, Behold, the fear of the Lord, that is wisdom;
and to depart from evil is understanding.

This Solomon had learned by the instruction of his father, as it is in the next verse, who had taught it him of a child:

Proverbs 4:4 (KJV) He taught me also, and said unto me, Let thine heart retain my words:
keep my commandments, and live.

Psalms 111:10 (KJV) The fear of the Lord is the beginning of wisdom:
a good understanding have all they that do his commandments:
his praise endureth for ever.

and therefore sets it here in the beginning of his works as the beginning of all. As in the end he makes it the end of all,

Ecclesiastes 12:13 (KJV): Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this is the whole duty of man.

yea, the all of man, without which he counts him not a complete man, though never so wise to the world ward.

Heathen sages, as Seneca, Socrates, &c., were wise in their generation, and had many excellent gifts, but they missed of the main; there was no fear of God before their eyes: being herein as alchemists, who miss of their end, but yet find many excellent things by the way.

These merchants found goodly pearls, but “the pearl of price”: 

Matthew 13:45-46 (KJV) Again, the kingdom of heaven is like unto a merchant man, seeking goodly pearls: Who, when he had found one pearl of great price, went and sold all that he had, and bought it.

they failed of. The prophet calls the fear of God “our treasure.”: 

Isaiah 33:6 (KJV): And wisdom and knowledge shall be
the stability of thy times, and strength of salvation:
the fear of the Lord is his treasure.