Sahih Muslim | Book 8 | Hadith Number 3437

Narrated by Abu Huraira (Allah be pleased with him)
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.