Usama bin Zayd reported,

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."

Ibn Majah 2730

Sahih

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

عن أسامة بن زيد

أنه قال يا رسول الله أتنزل في دارك بمكة قال وهل ترك لنا عقيل من رباع أو دور وكان عقيل ورث أبا طالب هو وطالب ولم يرث جعفر ولا علي شيئا لأنهما كانا مسلمين وكان عقيل وطالب كافرين فكان عمر من أجل ذلك يقول لا يرث المؤمن الكافر قال أسامة قال رسول الله ﷺ لا يرث المسلم الكافر ولا الكافر المسلم

ابن ماجه 2730صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Obligatory duties
Chapter
Inheritance of the people of Islam from the people of shirk
Numbering
Darussalam 2730
Ibn Majah 2730