It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he addressed a slave of his and said: "O so-and-so! If you were not a child of fornication (illegitimate), I would free you." It is also 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 of fornication will not enter Paradise." Imam Abu Ya'la al-Mawsili also narrated something similar. In another route this saying of Sayyiduna Abu Hurayrah (may Allah be pleased with him) is reported: "To provide benefit with a whip in the path of Allah is dearer to me than freeing a child of fornication." It is also narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The child of fornication will not enter Paradise, nor anyone of his offspring up to seven generations (will enter Paradise)." This narration will be mentioned again at the end, in the description of Hell.
It is narrated from Sayyidah Aishah (may Allah be pleased with her) that it was said to her that Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Giving a single sandal strap in charity is dearer to me than freeing a child of fornication (an illegitimate child)." Sayyidah Aishah (may Allah be pleased with her) said: "He misheard, and so he gave a wrong answer (in reporting it)." In fact, the Messenger of Allah (peace and blessings be upon him) said: "Giving a single sandal strap in charity is dearer to me than ordering my slave-woman to commit fornication and then freeing her child (born as a result of that act)." I (the author) say: The hadith "The child of fornication is the worst of the three" has already come in the Book of Legal Punishments (Kitab al-Hudud), and of the other hadiths about the child of fornication, some have already been mentioned in the Book of Faith (Kitab al-Iman) and some in the Book of Drinks (Kitab al-Ashribah).