Sunan an-Nasa'i, Volume 4, Book 27, Hadith 3513 (DarusSalam) ⓘ
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."
أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، عَنْ عَبْدِ الرَّزَّاقِ، قَالَ حَدَّثَنَا مَعْمَرٌ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدٍ، وَأَبِي، سَلَمَةَ عَنْ أَبِي هُرَيْرَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ " .
also referenced under: Hadith 3483 (Reference) & Book 27, Hadith 95 (In-Book)