حَدَّثَنَا أَبُو زُرْعَةَ الدِّمَشْقِيُّ، ثنا مُحَمَّدُ بْنُ الصَّلْتِ الْكُوفِيُّ، ثنا مَنْدَلُ بْنُ عَلِيٍّ، عَنِ ابْنِ أَبِي لَيْلَى، عَنْ دَاوُدَ بْنِ عَلِيٍّ، عَنْ أَبِيهِ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «وَلَدُ الزِّنَا شَرُّ الثَّلَاثَةِ إِذَا عَمِلَ بِعَمَلِ أَبَوَيْهِ»
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) 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."