Sunan Ibn Majah
2006
Sahih+3

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

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi