Sunan Ibn Majah, Book 23, Hadith 11 (Ibn Majah 2731)

It was narrated from Usamah bin Zaid, who attributed it to the Prophet (ﷺ):

“The Muslim does not inherit from a disbeliever and the disbeliever does not inherit from a Muslim.”