The Prophet ﷺ said, "People of two different religions do not inherit from one another."
حدثنا حميد بن مسعدة حدثنا حصين بن نمير عن ابن أبي ليلى عن أبي الزبير
عن النبي ﷺ قال لا يتوارث أهل ملتين
No references are available.
[Sahih], but its chain of transmission is daif. It has a corroborating narration in Abu Dawud, no. 2911, and Ibn Majah, no. 2731, and others, and its chain is hasan.