It is narrated from Usama bin Zaid (may Allah be pleased with them both) that the Messenger of Allah (ﷺ) said: "A Muslim cannot inherit from a disbeliever, nor can a disbeliever inherit from a Muslim."
Hadith Referenceمسند الإمام الشافعي / كتاب الفرائض والوصية / 1346
Hadith Takhrijاخرجه البخاري، المغازی، باب أين ركز النبي صلی اللہ علیہ وسلم الرأية يوم الفتح (4283) ومسلم، الفرائض، باب لا يرث المسلم الكافر ولا يرث الكافر المسلم (1614)۔
Ali bin Husayn (may Allah have mercy on him) narrated that the heirs of Abu Talib were Aqil and Talib; Ali and Ja'far (may Allah be pleased with them both) did not inherit. He said: That is why we gave up our share of Sha'b Abi Talib.
Hadith Referenceمسند الإمام الشافعي / كتاب الفرائض والوصية / 1347
Hadith Takhrijاسناده ضعيف لإنقطاعه، فان على بن الحسين لم يسمع من جده على بن ابى طالب اخرجه عبد الرزاق (9853) ، (9854) والمروزي في السنة (108)۔