وَعَنْ عُمَرَ رضى الله عنه
قَالَ: «مَنْ أَقَرَّ بِوَلَدٍ طَرْفَةَ عَيْنٍ، فَلَيْسَ لَهُ أَنْ يَنْفِيَهُ»
If anyone acknowledges that he is the father of his child just for the blinking of an eye, he has no right to disown it..
Bulugh al-Maram 1281, Book 8, Marriage, Hadith 159. 1 min read