Deuteronomy 24:16

New International Reader's Version Bible (NIRV)
Parents must not be put to death because of what their children do. And children must not be put to death because of what their parents do. People must die because of their own sins.

Read Deuteronomy 24:16 in other translations