It is narrated from Hazrat Aisha that the Prophet (peace be upon him) said: "If an illegitimate child also begins to act like his parents, then that will be a third evil."
Hadith Referenceمسند احمد / مسند النساء / 24784
Hadith Gradingحکم دارالسلام:إسناده ضعيف جدا لأجل إبراهيم بن إسحاق، فإنه متروك