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
Hadith No. 2006
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Shuaib Al Arnaut:
Sahih
Zubair Ali Zai:
Sahih Muslim