[Machine] The Messenger of Allah ﷺ said, "The child of zina (adultery) bears no responsibility for the sins of its parents." [And no bearer of burdens will bear the burden of another] (Quran, 6:164).
قَالَ رَسُولُ اللَّهِ ﷺ «لَيْسَ عَلَى وَلَدِ الزِّنَا مِنْ وِزْرِ أَبَوَيْهِ شَيْءٌ» {وَلَا تَزِرُ وَازِرَةٌ وِزْرَ أُخْرَى} [الأنعام 164]