Jabir reported God’s Messenger as saying, “He who dies leaving a will has died following a path and a sunna, he has died piously and testifying to the true faith, and he has died with his sins forgiven.”
Narrated Abu Huraira reported God’s Messenger as saying:
“ A man and a woman act in obedience to God for sixty years then when they are about to die they cause injury by their will, so they must go to hell.” Then Abu Huraira recited, “After a legacy which you bequeathe or a debt, causing no injury ... that will be the mighty success”(Al-Qur’an 4:12).
Ahmad, Tirmidhi, Abu Dawud and Ibn Majah transmitted it.
‘Amr b. Shu'aib, on his father’s authority, said his grandfather told that al-‘As b. Wa’il left in his will that a hundred slaves should be emancipated on his behalf. His son Hisham emancipated fifty slaves and his son ‘Amr intended to emancipate the remaining fifty on his behalf, but decided first to ask God’s Messenger. He therefore went to the Prophet and said, “Messenger of God, my father left in his will that a hundred slaves should be emancipated on his behalf and Hisham has emancipated fifty on his behalf and fifty remain. Shall I emancipate them on his behalf?” God's Messenger replied, “Had he been a Muslim and you had emancipated slaves on his behalf, or given sadaqa on his behalf, or performed the pilgrimage on his behalf, that would have reached him.”
It is related in munqati’ form on the authority of Ibn ‘Abbas that the Prophet said, “No legacy is to be left to an heir unless the other heirs are agreeable.” This is the wording in al-Masabih, but in Daraqutni’s version he said, “A legacy to an heir is not allowable unless the other heirs are agreeable.”