It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The child born of fornication is the worst of the three."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19989