Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:12229Abū al-Ḥasan Muḥammad b. al-Ḥusayn al-ʿAlawī > Abū Muḥammad ʿAbdullāh b. Muḥammad b. al-Ḥasan b. al-Sharqī > ʿAbd al-Raḥman b. Bishr b. al-Ḥakam al-ʿAbdī > Sufyān b. ʿUyaynah > ʿIddah Minhum Yaʿqūb b. ʿAṭāʾ > ʿAmr b. Shuʿayb from his father from his grandfather

[Machine] The Prophet ﷺ said, "The people of two different religions do not inherit from each other, and likewise."  

البيهقي:١٢٢٢٩أَخْبَرَنَا أَبُو الْحَسَنِ مُحَمَّدُ بْنُ الْحُسَيْنِ الْعَلَوِيُّ أنا أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ الْحَسَنِ بْنِ الشَّرْقِيِّ ثنا عَبْدُ الرَّحْمَنِ بْنُ بِشْرِ بْنِ الْحَكَمِ الْعَبْدِيُّ ثنا سُفْيَانُ بْنُ عُيَيْنَةَ قَالَ سَمِعْتُ عِدَّةً مِنْهُمْ يَعْقُوبُ بْنُ عَطَاءٍ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ النَّبِيَّ ﷺ قَالَ لَا يَتَوَارَثُ أَهْلُ مِلَّتَيْنِ شَتَّى وَكَذَلِكَ  

رَوَاهُ حَبِيبٌ الْمُعَلِّمُ عَنْ عَمْرٍو

See similar narrations below:

Collected by Aḥmad, Nasāʾī's Kubrá
ahmad:6664Sufyān > Yaʿqūb b. ʿAṭāʾ And Ghayruh > ʿAmr b. Shuʿayb from his father from his grandfather

“People of two different religions do not inherit from one another.” (Using translation from Ibn Mājah 2731)  

أحمد:٦٦٦٤حَدَّثَنَا سُفْيَانُ عَنْ يَعْقُوبَ بْنِ عَطَاءٍ وَغَيْرُهُ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا يَتَوَارَثُ أَهْلُ مِلَّتَيْنِ شَتَّى  

ahmad:6844Rawḥ > Shuʿbah > ʿĀmir al-Aḥwal > ʿAmr b. Shuʿayb from his father from his grandfather

"The people of two religions do not inherit from each other." (Using translation from Tirmidhī 2108)  

أحمد:٦٨٤٤حَدَّثَنَا رَوْحٌ حَدَّثَنَا شُعْبَةُ حَدَّثَنَا عَامِرٌ الْأَحْوَلُ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

عَنِ النَّبِيِّ ﷺ قَالَ لَا يَتَوَارَثُ أَهْلُ مِلَّتَيْنِ شَتَّى  

nasai-kubra:6351Hārūn b. ʿAbdullāh al-Ḥammāl > Ibn ʿUyaynah > Yaʿqūb b. ʿAṭāʾ And Ghayrih > ʿAmr b. Shuʿayb from his father from his grandfather

The Prophet ﷺ said: people of two different religions would not inherit from one another. (Using translation from Abū Dāʾūd 2911)  

الكبرى للنسائي:٦٣٥١أَخْبَرَنِي هَارُونُ بْنُ عَبْدِ اللهِ الْحَمَّالُ قَالَ حَدَّثَنَا ابْنُ عُيَيْنَةَ عَنْ يَعْقُوبَ بْنِ عَطَاءٍ وَغَيْرِهِ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ النَّبِيَّ ﷺ قَالَ «لَا يَتَوَارَثُ أَهْلُ مِلَّتَيْنِ شَتَّى»