One of Allah's 99 names or attributes is Al-Warith, the Heir / Inheritor.
According to the Qur'an, Solomon was the heir of David (Q. 27:16); Yahya was the heir of Zachariah (Q. 19:1-6); Israel inherited the Egyptians (Q. 33:27).
The inheritance legislation of the Qur’an is found in Q. 4:11-12 and 4:176.