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