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 (pbuh) said: "The prophets' property will not be inherited, and whatever we leave is to be used for charity." (Sahih Al-Bukhari).