Sunan Abi Dawud, Book 19, Hadith 27 (Abu Dawud 2912)

Narrated Abdullah ibn Amr ibn al-'As:

The Prophet (ﷺ) said: people of two different religions would not inherit from one another.