Sunan Ibn Majah, Book 23, Hadith 2835 (In-Book)

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

وَقَالَ أُسَامَةُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ يَرِثُ الْمُسْلِمُ الْكَافِرَ وَلاَ الْكَافِرُ الْمُسْلِمَ ‏" ‏ ‏.‏

sunnah.com