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.
tirmidhi:2113Qutaybah > Ibn Lahīʿah > ʿAmr b. Shuʿayb from his father from his grandfather

"Any man who fornicates with a free woman, or a slave woman, then the child born from Zina does not inherit, nor is it inherited from."  

الترمذي:٢١١٣حَدَّثَنَا قُتَيْبَةُ قال حَدَّثَنَا ابْنُ لَهِيعَةَ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ أَيُّمَا رَجُلٍ عَاهَرَ بِحُرَّةٍ أَوْ أَمَةٍ فَالْوَلَدُ وَلَدُ زِنَا لاَ يَرِثُ وَلاَ يُورَثُ  

قَالَ أَبُو عِيسَى وَقَدْ رَوَى غَيْرُ ابْنِ لَهِيعَةَ هَذَا الْحَدِيثَ عَنْ عَمْرِو بْنِ شُعَيْبٍ وَالْعَمَلُ عَلَى هَذَا عِنْدَ أَهْلِ الْعِلْمِ أَنَّ وَلَدَ الزِّنَا لاَ يَرِثُ مِنْ أَبِيهِ

See similar narrations below:

Collected by Ibn Mājah, Suyūṭī
ibnmajah:2745Abū Kurayb > Yaḥyá b. al-Yamān > al-Muthanná b. al-Ṣabbāḥ > ʿAmr b. Shuʿayb from his father from his grandfather

“Whoever commits adultery with a slave woman or a free woman, his child is illegitimate, and he cannot inherit from him or be inherited from (i.e., this child cannot inherit from him).”  

ابن ماجة:٢٧٤٥حَدَّثَنَا أَبُو كُرَيْبٍ حَدَّثَنَا يَحْيَى بْنُ الْيَمَانِ عَنِ الْمُثَنَّى بْنِ الصَّبَّاحِ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ مَنْ عَاهَرَ أَمَةً أَوْ حُرَّةً فَوَلَدُهُ وَلَدُ زِنًا لاَ يَرِثُ وَلاَ يُورَثُ  

suyuti:9474a
Request/Fix translation

  

السيوطي:٩٤٧٤a

"أيّمَا رَجُلٍ عَاهَرَ بِحُرَّةٍ، أَوْ أَمَة فَالوَلَدُ ولَدُ زِنًى لَا يَرِثُ، وَلَا يُورَثُ".  

[ش] ابن أبى شيبة [ت] الترمذي عن عمرو بن شعيب عن أَبيه، عن جده