It wasnarrated from Usamah bin Zaid, who attributed it to theProphet(ﷺ):
"The Muslim does not inherit from a disbeliever and thedisbeliever does not inherit from a Muslim." (ID)
English reference (ID): Vol. 4, Book 23, Hadith 2729 (ID)
Arabic reference (ID): Book 23, Hadith 2833 (ID)