Parents are not to be put to death for their children, nor children for their parents; each person is to die for his own sin.
In context
14Do not take advantage of a hired worker who is poor and needy, whether a fellow Israelite or a foreigner residing in one of your towns. 15Pay him his wages each day before sunset, because he is poor and depends on them. Otherwise he may cry out to Yahweh against you, and you will be guilty of sin. 16Parents are not to be put to death for their children, nor children for their parents; each person is to die for his own sin. 17Do not deprive the foreigner or the fatherless of justice, and do not take a widow’s garment as security for a debt. 18Remember that you were a slave in Egypt, and Yahweh your God redeemed you from there. That is why I command you to do this.