al-Hasan al-Basri said:
The child born from fornication and others are the same.
It has transmitted from 'Aishah (may Allaah be pleased with her) that when she was asked about the child born from fornication, she replied: Nothing is upon him [i.e. he is not responsible for anything] of the mistakes of his parents.
Volume 1 Page 342