(10) باب الْوَلَدِ لِلْفِرَاشِ وَتَوَقِّي الشُّبُهَاتِ
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:
The child is to be attributed to one on whose bed he is born, and for a fornicator there is stoning.
Reference: Sahih Muslim 1458 a
In-book reference: Book 17, Hadith 48
USC-MSA web (English) reference(deprecated numbering scheme): Book 8, Hadith 3437