Translation
(85) Laws of Inheritance (Al-Faraa'id)
كتاب الفرائض
(26) Chapter: Neither a Muslim can be the heir of a disbeliever, nor a disbeliever of a Muslim
(26) باب لاَ يَرِثُ الْمُسْلِمُ الْكَافِرَ وَلاَ الْكَافِرُ الْمُسْلِمَ، وَإِذَا أَسْلَمَ قَبْلَ أَنْ يُقْسَمَ الْمِيرَاثُ فَلاَ مِيرَاثَ لَهُ
Sahih al-Bukhari 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."

حَدَّثَنَا أَبُو عَاصِمٍ، عَنِ ابْنِ جُرَيْجٍ، عَنِ ابْنِ شِهَابٍ، عَنْ عَلِيِّ بْنِ حُسَيْنٍ، عَنْ عَمْرِو بْنِ عُثْمَانَ، عَنْ أُسَامَةَ بْنِ زَيْدٍ ـ رضى الله عنهما ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ يَرِثُ الْمُسْلِمُ الْكَافِرَ، وَلاَ الْكَافِرُ الْمُسْلِمَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6764
In-book reference : Book 85, Hadith 41
USC-MSA web (English) reference : Vol. 8, Book 80, Hadith 756
  (deprecated numbering scheme)