Sunan an-Nasa'i, Book 27, Hadith 95 (Nasa'i 3489)

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."