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.
darimi:3146Abū Nuʿaym > Zuhayr > al-Ḥasan b. al-Ḥur > al-Ḥakam

[Machine] "A child of adultery is not inherited by the one who claims him, nor is he inherited by the biological offspring."  

الدارمي:٣١٤٦أَخْبَرَنَا أَبُو نُعَيْمٍ حَدَّثَنَا زُهَيْرٌ عَنْ الْحَسَنِ بْنِ الْحُرِّ حَدَّثَنِي الْحَكَمُ

«أَنَّ وَلَدَ الزِّنَا لَا يَرِثُهُ الَّذِي يَدَّعِيهِ وَلَا يَرِثُهُ الْمَوْلُودُ»