Usama bin Zayd reported,

"Messenger of Allah, where will you stay in your house in Makkah?"He replied, "Has Aqeel left us any houses or dwellings?"Aqeel and Talib had inherited from Abu Talib, while Jafar and Ali رضي الله عنهم inherited nothing from him, because they were both Muslims while Aqeel and Talib were disbelievers. Umar bin Khattab رضي الله عنه used to say, "A believer does not inherit from a disbeliever."Ibn Shihab said that they used to interpret this in light of the saying of Allah the Exalted, "Indeed, those who have believed and emigrated and fought with their wealth and lives in the cause of Allah and those who gave shelter and aided, they are allies of one another" [Anfal 8:72].

Bukhari 1588

Sahih

حدثنا أصبغ قال أخبرني ابن وهب عن يونس عن ابن شهاب عن علي بن حسين عن عمرو بن عثمان

عن أسامة بن زيد رضي الله عنهما أنه قال

يا رسول الله أين تنزل في دارك بمكة فقال وهل ترك عقيل من رباع أو دور وكان عقيل ورث أبا طالب هو وطالب ولم يرثه جعفر ولا علي رضي الله عنهما شيئا لأنهما كانا مسلمين وكان عقيل وطالب كافرين فكان عمر بن الخطاب رضي الله عنه يقول لا يرث المؤمن الكافر قال ابن شهاب وكانوا يتأولون قول الله تعالى {إن الذين آمنوا وهاجروا وجاهدوا بأموالهم وأنفسهم في سبيل الله والذين آووا ونصروا أولئك بعضهم أولياء بعض} الآية

البخاري 1588صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hajj
Chapter
Inheritance, sale, and purchase of the houses of Makkah
Numbering
Darussalam 1588
Bukhari 1588