(10) باب الْوَلَدِ لِلْفِرَاشِ وَتَوَقِّي الشُّبُهَاتِ
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." (JA)
Reference (JA): Sahih Muslim 1457 b (JA)
In-book reference (JA): Book 17, Hadith 47 (JA)
USC-MSA web (English) reference(deprecated numbering scheme): Book 8, Hadith 3436 (JA)