"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."
Sunan Ibn Majah Book 9, Hadith 163