Sahih Muslim | Book 8 | Hadith Number 3436

Narrated by Ibn 'Uyaiyna and Ma'mar
A hadith like this is narrated on the authority of Ibn 'Uyaiyna and Ma'mar (and the words are): The child is attributed to him on whose bed he is born; but they did not mention this: "For a fornicator there is stoning.