Solomon inherited David's prophethood and dominion. This was not a material inheritance, as prophets do not bequeath their property. It is given away to the poor and needy, not to their relatives. Prophet Muhammad said: 'The prophets' property will not be inherited, and whatever we leave is to be used for charity."
And indeed We gave knowledge to David and Solomon, and they both said: 'All the praises and thanks be to Allah, Who has preferred us above many of His believing slaves!"
And Solomon inherited (the knowledge of) David. He said: "0 mankind! We have been taught the language of birds, and on us have been bestowed all things. This, verily, is an evident grace (from Allah)."
And there were gathered before Solomon his hosts of jinns and men, and birds, and they were all set in battle order (marching forwards). Surah 27: 15-17
Solomon Becomes King
After his father's death, Solomon became king. He begged Allah for a kingdom such as none after him would have, and Allah granted his wish. Besides wisdom, Allah had blessed Solomon with many abilities. He could command the winds and understand and talk to birds and animals. Allah directed him to teach both men and jinns to mine the earth and extract its minerals to make tools and weapons. He also favored him with a mine of copper, which was a rare metal in those days.