I came in to see Umar bin Khattab, and Uthman bin Affan, Zubayr bin Awwam, Abdul-Rahman bin Awf, and Saad bin Abu Waqqas also came in to see him. Then Ali and Abbas arrived, disputing with one another.Umar said to them, "I ask you by Allah, by whose permission the heavens and the earth stand firm, do you know that the Messenger of Allah ﷺ said, 'We do not leave inheritance. Whatever we leave is charity'?"They replied, "Yes."Umar continued, "When the Messenger of Allah ﷺ passed away, Abu Bakr said, 'I am the successor of the Messenger of Allah ﷺ.' So you and this man came to Abu Bakr, you seeking your inheritance from your nephew, and this one seeking his wife's inheritance from her father. Abu Bakr said, 'The Messenger of Allah ﷺ said, We do not leave inheritance. Whatever we leave is charity.' And Allah knows he was truthful, righteous, rightly guided, and a follower of the truth."
حدثنا الحسن بن علي الخلال أخبرنا بشر بن عمر حدثنا مالك بن أنس عن ابن شهاب
دخلت على عمر بن الخطاب ودخل عليه عثمان بن عفان والزبير بن العوام وعبد الرحمن بن عوف وسعد بن أبي وقاص ثم جاء علي والعباس يختصمان فقال عمر لهم أنشدكم بالله الذي بإذنه تقوم السماء والأرض تعلمون أن رسول الله ﷺ قال لا نورث ما تركنا صدقة قالوا نعم قال عمر فلما توفي رسول الله ﷺ قال أبو بكر أنا ولي رسول الله ﷺ فجئت أنت وهذا إلى أبي بكر تطلب أنت ميراثك من ابن أخيك ويطلب هذا ميراث امرأته من أبيها فقال أبو بكر إن رسول الله ﷺ قال لا نورث ما تركنا صدقة والله يعلم إنه صادق بار راشد تابع للحق
Agreed upon [muttafaq alayh]. Bukhari narrated it in "The Obligation of the Khumus," chapter on the obligation of the khumus, hadith no. 3094, and Muslim, hadith no. 1757/49, from the hadith of Malik through this route.