Only the one who commits Zina will bear its sin

Q 19: It is said that an illegitimate child is considered Najis (impure) and therefore cannot be admitted into Jannah (Paradise). Is this true?

A: If the child dies as a Muslim, he can be admitted to Jannah, even though he is an illegitimate child. Moreover, he is not regarded as Najis. The sin of an adulterer or fornicator shall be shouldered by the person who committed the sin not by their children) who may be born as a result of this crime. Allah (Exalted be He) says, ...and no bearer of burdens shall bear the burden of another. With regard to whether he is Najis or not, the Prophet (peace be upon him) said, A Muslim is not Najis (in essence). May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.