-->
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: "O 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
Related Quran Ayaaths of this Hadith..
Surah 6 : Ayah 84 Surah 4 : Ayah 163 Surah 27 : Ayah 15 Surah 27 : Ayah 16 Surah 27 : Ayah 17 Surah 27 : Ayah 18 Surah 27 : Ayah 19"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari