the Prophet said: "The child is for the bed (i.e., belongs to the husband) and the fornicator gets nothing!'
Sunan Ibn Majah Book 9, Hadith 162