وَعَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «أَيُّمَا رَجُلٍ عَاهَرَ بِحُرَّةٍ أَوْ أَمَةٍ فَالْوَلَد ولد زنى لَا يَرث وَلَا يُورث» . رَوَاهُ التِّرْمِذِيّ
‘Amr b. Shu'aib, on his father's authority, said his grandfather reported the Prophet as saying, “If a man commits fornication with a freewoman or a slave woman the child is the product of fornication, and neither does he inherit nor may anyone inherit from him." Tirmidhi transmitted it.
Reported by Abu Dawud (No. 2265), At-Tirmidhi (No. 641), Ibn Majah (No. 2746), Ahmad (No. 6434, 6745) and Ad-Darimi (No. 2983). Cited in Mishkat al-Masabih (No. 3054).