Sunan Ibn Majah, Book 9, Hadith 163 (Ibn Majah 2007)

Shurahbil bin Muslim said:

"I heard Abu Um Amah Al-Bahili say: 'I heard the Messenger of Allah say: "The child is for the bed and the fornicator gets nothing."