King Solomon was given the name Jedidiah "beloved of God". A name from God at birth through the Prophet Nathan. He was commissioned to build God's House and also given a request to be granted, and he chose; wisdom to lead the people. The answer God was looking for, was for him to ask to dwell in God's House. Solomon asked for wisdom to lead the people, and had he asked to live in God's House with his request, then where to lead the people is a given, and Israel's prophetic blessing of Judah would have been fulfilled, however Solomon was not the Shiloh to come.
The name Jedidiah given by God, did find it's fulfillment in time. However, the question about wisdom that the OP asked,...it is like this, Solomon asked for personal wisdom, which is what the serpent claimed to offer at the tree of knowledge of good and evil. And you had God's House over here and Solomon's house over there, and at the dedication of the Temple it says the Priest could not stand because the presence and glory of God was so great, which is not the "inviting in" stance like the priestly blessing states, it was more akin to what the Israelites experienced when God thundered from the mountain, after they had built the golden calf, and ultimately did not enter the promised land.
So, at the end of that evening King Solomon went home to his own house and his personal greatness. Which in no way comes near to being together with God. The book of Ecclesiastes gives it's summation.