Hadithcore
Hadith #2111640

Narrated Usamah bin Zaid (RA):

The Prophet (ﷺ) said: "A Muslim does not inherit from an infidel and an infidel does not inherit from a Muslim." [Agreed upon].

وَعَنْ أُسَامَةَ بْنِ زَيْدٍ ‏- رَضِيَ اَللَّهُ عَنْهُمَا‏- أَنَّ اَلنَّبِيَّ ‏- صلى الله عليه وسلم ‏-قَالَ : { لَا يَرِثُ اَلْمُسْلِمُ اَلْكَافِرَ, وَلَا يَرِثُ اَلْكَافِرُ اَلْمُسْلِمَ } مُتَّفَقٌ عَلَيْهِ [1]‏

References2 variants
Sunnah.com reference
Book 7, Hadith 207
Arabic/English book reference
Book 7, Hadith 953