Solomon approached the Lord showing an understanding of the true relationship between God and David: it was based on who God was and David’s obedience. Solomon saw that the blessings given to David weren’ a lucky chance or simply God playing favorites.
In asking for wisdom Solomon acknowledged his own inability. He didn’t say, “Well, you know I’m a pretty wise guy, but I could probably use some divine intervention to make me super awesome.” No, what he said was, “I do not know how to go out or come in.” (1 Kings 3:7b). Solomon felt completely unable to be the king, unable to make the decisions necessary to run a mighty kingdom. He knew that the only way to fulfill the mantle of king that had been passed down to him was to rely fully on God. God asked what he wanted, and Solomon requested wisdom (1 Kings 3:1-15). As a result, God promises him “both riches and honor, so that no other king shall compare with you, all your days.” (v. 13).
In Matthew, we hear the same advice from Jesus, “But seek first the kingdom of God and His righteousness, and all these things shall be added to you.” (Mathew 6:33 [NKJV]). This passage of scriptures is specifically talking about not worrying about all the day to day cares of life. Jesus is saying that He is the source of all our needs and we need to make Him our priority. Everything outside of that falls into place.