It was narrated from Abu Hurairah that:
the Prophet said: "The child is for the bed (i.e., belongs to the husband) and the fornicator gets nothing!' (AR)
English reference (AR): Vol. 3, Book 9, Hadith 2006 (AR)
Arabic reference (AR): Book 9, Hadith 2084 (AR)