the Prophet ﷺ said, "A Muslim cannot be the heir of a disbeliever, nor can a disbeliever be the heir of a Muslim." (Using translation from Bukhārī 6764)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «لَا يَرِثُ الْمُسْلِمُ الْكَافِرَ وَلَا يَرِثُ الْكَافِرُ الْمُسْلِمَ»