Sahih Muslim · Hadith 3688
The Book of Suckling - كتاب الرضاع
وحدثني محمد بن رافع، وعبد بن حميد، - قال ابن رافع - حدثنا عبد الرزاق، أخبرنا معمر، عن الزهري، عن ابن المسيب، وأبي، سلمة عن أبي هريرة، أن رسول الله صلى الله عليه وسلم قال " الولد للفراش وللعاهر الحجر " .
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: The child is to be attributed to one on whose bed he is born, and for a fornicator there is stoning.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).