It was narrated from Abu Hurairah that the Prophet said:"The child is the bed's and for the fornicator is the stone
Hadith No. 3482
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih Muslim