Umar bin Abd al-Aziz (may Allah have mercy on him) said that if a man acknowledged his child and then denied him, the child is still his.