Sunan Ibn Majah, Book 23, Hadith 13 (Ibn Majah 2733)

It was narrated from ‘Amr bin Shu’aib, from his father, from his grandfather, that the Messenger of Allah (ﷺ) said:

“People of two different religions do not inherit from one another.”