(48) باب إِلْحَاقِ الْوَلَدِ بِالْفِرَاشِ إِذَا لَمْ يَنْفِهِ صَاحِبُ الْفِرَاشِ
It was narrated from Abu Hurairah that the Messenger of Allah said:
"The child is the bed's and for the fornicator is the stone."
Reference: Sunan an-Nasa'i 3483
In-book reference: Book 27, Hadith 95
English translation: Vol. 4, Book 27, Hadith 3513