2 Kings 14:6

But the children of the murderers he slew not: according unto that which is written in the book of the law of Moses, wherein the Lord commanded, saying, The fathers shall not be put to death for the children, nor the children be put to death for the fathers; but every man shall be put to death for his own sin.

Cross-reference

Deuteronomy 24:16 is the exact law quoted here: no executing children for parents’ sins.

Ezekiel 18:20 explicitly states that children are not guilty for their parents’ sins — identical to the rule Amaziah follows.

2 Chronicles 25:4 gives the parallel account of Amaziah sparing the children, citing the same law from Deuteronomy.

Daniel 6:24 Contrast

In Daniel 6:24, children are killed with their fathers—a direct contrast to the law cited here that each dies for his own sin.

Ezekiel 18:4 teaches that each person dies for their own sin — the same principle Amaziah applies in sparing the children.