It wasnarrated from 'Amr bin Shu'aib, from his father, from hisgrandfather, that the Messenger of Allah (ﷺ) said:
"People of twodifferent religions do not inherit from one another." (ID)
English reference (ID): Vol. 4, Book 23, Hadith 2731 (ID)
Arabic reference (ID): Book 23, Hadith 2836 (ID)