(29) Chapters On Inheritance
كتاب الفرائض عن رسول الله صلى الله عليه وسلم
(21) Chapter: What has been Related About Invalidating Inheritance For the Child Of Zina (illegitimate Sexual Relations)
(21) باب مَا جَاءَ فِي إِبْطَالِ مِيرَاثِ وَلَدِ الزِّنَا
Jami` at-Tirmidhi 2113 
Amr bin Shu'aib narrated from his father, from his grandfather, that the Messenger of Allah(S.A.W) said:
"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."
حَدَّثَنَا قُتَيْبَةُ، قال حَدَّثَنَا ابْنُ لَهِيعَةَ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ أَيُّمَا رَجُلٍ عَاهَرَ بِحُرَّةٍ أَوْ أَمَةٍ فَالْوَلَدُ وَلَدُ زِنَا لاَ يَرِثُ وَلاَ يُورَثُ ‏"‏ ‏.‏ قَالَ أَبُو عِيسَى وَقَدْ رَوَى غَيْرُ ابْنِ لَهِيعَةَ هَذَا الْحَدِيثَ عَنْ عَمْرِو بْنِ شُعَيْبٍ ‏.‏ وَالْعَمَلُ عَلَى هَذَا عِنْدَ أَهْلِ الْعِلْمِ أَنَّ وَلَدَ الزِّنَا لاَ يَرِثُ مِنْ أَبِيهِ.‏
Grade :  Hasan (Darussalam)
Reference : Jami` at-Tirmidhi 2113
In-book reference : Book 29, Hadith 24
English translation : Vol. 4, Book 3, Hadith 2113