The presence of a person is a metonym for being able to speak and listen to the person. Alternate translation: "wanted to visit Solomon" or "came to visit Solomon" (See: [[rc://en/ta/man/jit/figs-metonymy]])
The heart is a metonym for what a person thinks, and here it is spoken of as if it were a container. The abstract noun "wisdom" is a metonym for the wise things a person thinks or says. Alternate translation: "to hear how wise God had enabled him to be" or "to hear him speak the wise words that God had enabled him to speak" (See: [[rc://en/ta/man/jit/figs-metonymy]])
God putting wisdom in Solomon's heart represents God making Solomon wise. Alternate translation: "which God had given him" or "because God had made him wise" (See: [[rc://en/ta/man/jit/figs-metaphor]])