Usama reported that he said, "Messenger of Allah, 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, because the latter two were Muslims and Aqeel and Talib were disbelievers. For this reason, Umar used to say, "A believer does not inherit from a disbeliever."Usama said that the Messenger of Allah ﷺ said, "A Muslim does not inherit from a disbeliever, nor does a disbeliever inherit from a Muslim."
حدثنا أحمد بن عمرو بن السرح حدثنا عبد الله بن وهب أنبأنا يونس عن ابن شهاب عن علي بن الحسين أنه حدثه أن عمرو بن عثمان أخبره
أنه قال يا رسول الله أتنزل في دارك بمكة قال وهل ترك لنا عقيل من رباع أو دور وكان عقيل ورث أبا طالب هو وطالب ولم يرث جعفر ولا علي شيئا لأنهما كانا مسلمين وكان عقيل وطالب كافرين فكان عمر من أجل ذلك يقول لا يرث المؤمن الكافر قال أسامة قال رسول الله ﷺ لا يرث المسلم الكافر ولا الكافر المسلم
Bukhari narrated it in the Book of Hajj, Chapter on the inheritance, selling, and buying of Makkah's houses etc., no. 1588, from the hadith of Ibn Wahb, through him, and Muslim narrated it in the Book of Hajj, Chapter on pilgrims staying in Makkah and the inheritance of its houses, no. 1351, from Ahmad bin Amr bin Sarh Abu Tahir, through him. See the previous hadith for its last portion.