The Bible says God once appeared to Solomon in a dream and asked him what he wanted. When Solomon asked for a wise and an understanding heart to be able to govern God’s people. God was impressed. He was impressed basically because Solomon was more concerned about helping the people he was destined to help by asking God to give him what would help him to help them in the best way possible. So, God told him He would give him what he asked and everything that he didn’t ask, so much that nobody would be as wise, rich or famous as him both before and after him.
So King Solomon became so wise that his fame spread all over the world. Because he had very much of inspired knowledge through the heart of wisdom and understanding that God gave him. But, with that knowledge, he still needed to make research before he could know certain things.
But, because of his inspired knowledge by the reason of the gift of understanding he had gotten from the LORD, he was able to more easily discover his intensions when making researches. But, Solomon was wise enough to document his discoveries and knowledge. That was one of the reasons why his fame spread and people were coming to him from every part of the world.
The Bibles says, “…God gave Solomon wisdom and understanding exceeding much, and largeness of heart, even as the sand that is on the sea shore.” As a result “…Solomon's wisdom excelled the wisdom of all the children of the east country, and all the wisdom of Egypt. For he was wiser than all men.” So, what happened? It says “...his fame was in all nations round about. And he spake three thousand proverbs: and his songs were a thousand and five.