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)۔