We gave knowledge to David and Solomon, who said: "Praise be to God, Who has favored us over many of His servants who are believers.” Solomon was David's heir… (Qur'an, 27:15-16)
Prophet Solomon (pbuh) was a son of Prophet David (pbuh), to whom God gave great knowledge, wealth and wisdom (Qur'an, 2:251), favor (Qur'an, 34:10), and to whom He revealed the Psalms. In the Qur'an, God decrees: "We gave [to] David Solomon” (Qur'an, 38:30).
… We raise in rank anyone We will. Your Lord is All-Wise, All-Knowing. We gave him [Abraham] Isaac and Jacob, each of whom We guided. And before him We had guided Noah. And among his descendants were David and Solomon, Job and Joseph, and Moses and Aaron. That is how We recompense the good-doers. And Zachariah, John, Jesus, and Elias—all of them were among the righteous. And Ishmael, Elisha, Jonah, and Lot—all of them We favored over all beings. And some of their forebears, descendants, and brothers—We chose them and guided them to a straight path. (Qur'an, 6:83-87)
As He did with Prophet David (pbuh), God sent Prophet Solomon (pbuh) to the Israelites. God put him on the right path, counted him as one of His faithful servants and made him superior to other people. In fact, God tells believers:
They are the ones God has guided, so be guided by their guidance. Say: "I do not ask you for any wage for it. It is simply a reminder to all beings.” (Qur'an, 6:90)
Like all other prophets, Prophet Solomon (pbuh) invited people to believe in God, avoid associating any other thing or being with Him, and obey His commands and recommendations.