Sahih Muslim
The Book of Marriage (Kitab Al-Nikah)
Book Number: 008 / Hadith Number: 3437
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.