Deuteronomy 24:16

NLT
New Living Translation

16“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.