صحيح البخاري Sahih Bukhari كتاب الفرائض The Book of Al-Farad (The Laws of Inheritance)
بَابُ لاَ يَرِثُ الْمُسْلِمُ الْكَافِرَ وَلاَ الْكَافِرُ الْمُسْلِمَ، وَإِذَا أَسْلَمَ قَبْلَ أَنْ يُقْسَمَ الْمِيرَاثُ فَلاَ مِيرَاثَ لَهُ:

(26) Chapter. Neither a Muslim can be the heir of a disbeliever, nor a disbeliever can be the heir of a Muslim. And if somebody becomes a Muslim bfore the property of his dead (disbelievers) relative is divided among the heirs, he will have no share.

1 hadith
Hadith 6764
حَدَّثَنَا أَبُو عَاصِمٍ ، عَنْ ابْنِ جُرَيْجٍ ، عَنْ ابْنِ شِهَابٍ ، عَنْ عَلِيِّ بْنِ حُسَيْنٍ ، عَنْ عَمْرِو بْنِ عُثْمَانَ ، عَنْ أُسَامَةَ بْنِ زَيْدٍ رَضِيَ اللَّهُ عَنْهُمَا ، أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ , قَالَ : " لَا يَرِثُ الْمُسْلِمُ الْكَافِرَ ، وَلَا الْكَافِرُ الْمُسْلِمَ " .
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."
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6764
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة