Muhammad bin Qays narrates from Sayyidah Aishah (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) said: "The child born of fornication is the worst of the three when he does the deeds of his parents."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19993