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:3148ʿAbdullāh b. Ṣāliḥ > Bakr b. Muḍar > ʿAmr / Ibn al-Ḥārith > Bukayr > Sulaymān b. Yasār > Ayyumā a man Atá > Ghulām Yazʿum > Ibn Lah

[Machine] "Whichever man comes to a boy, claiming to be his son and that he had illicit relations with his mother, and no one else claims that boy, then he will inherit him."

Bukayr said, "I asked Urwah about this and he said it is like the saying of Sulayman ibn Yasar." Urwah also said, "We have received information that the Messenger of Allah ﷺ said, 'The child belongs to the one who slept on the bed, and the stoning is for the adulterer.'"  

الدارمي:٣١٤٨حَدَّثَنَا عَبْدُ اللَّهِ بْنُ صَالِحٍ حَدَّثَنِي بَكْرُ بْنُ مُضَرَ عَنْ عَمْرٍو يَعْنِي ابْنَ الْحَارِثِ عَنْ بُكَيْرٍ عَنْ سُلَيْمَانَ بْنِ يَسَارٍ قَالَ

«أَيُّمَا رَجُلٍ أَتَى إِلَى غُلَامٍ يَزْعُمُ أَنَّهُ ابْنٌ لَهُ وَأَنَّهُ زَنَى بِأُمِّهِ وَلَمْ يَدَّعِ ذَلِكَ الْغُلَامَ أَحَدٌ فَهُوَ يَرِثُهُ» قَالَ بُكَيْرٌ وَسَأَلْتُ عُرْوَةَ عَنْ ذَلِكَ فَقَالَ مِثْلَ قَوْلِ سُلَيْمَانَ بْنِ يَسَارٍ وَقَالَ عُرْوَةُ بَلَغَنَا أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ»