(26) باب لاَ يَرِثُ الْمُسْلِمُ الْكَافِرَ وَلاَ الْكَافِرُ الْمُسْلِمَ، وَإِذَا أَسْلَمَ قَبْلَ أَنْ يُقْسَمَ الْمِيرَاثُ فَلاَ مِيرَاثَ لَهُ
Narrated Usama bin Zaid:
the Prophet (ﷺ) said, "A Muslim cannot be the heir of a disbeliever, nor can a disbeliever be the heir of a Muslim."
Reference: Sahih al-Bukhari 6764
In-book reference: Book 85, Hadith 41
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 80, Hadith 756