Deuteronomy 24:16

New Living Translation Bible (NLT)
“Parents must not be put to death for the sins of their children, nor children for the sins of their parents. Those deserving to die must be put to death for their own crimes.

Read Deuteronomy 24:16 in other translations