Deuteronomy 24:16

16 Parents shall not be put to death for their children, nor shall children be put to death for their parents; only for their own crimes may persons be put to death.

Deuteronomy 24:16 In-Context

14 You shall not withhold the wages of poor and needy laborers, whether other Israelites or aliens who reside in your land in one of your towns.
15 You shall pay them their wages daily before sunset, because they are poor and their livelihood depends on them; otherwise they might cry to the Lord against you, and you would incur guilt.
16 Parents shall not be put to death for their children, nor shall children be put to death for their parents; only for their own crimes may persons be put to death.
17 You shall not deprive a resident alien or an orphan of justice; you shall not take a widow's garment in pledge.
18 Remember that you were a slave in Egypt and the Lord your God redeemed you from there; therefore I command you to do this.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.