2 Kings 14:6

Yet he did not put the sons of the murderers to death, but acted according to what is written in the Book of the Law of Moses, where the Lord commanded: “Fathers must not be put to death for their children, and children must not be put to death for their fathers; each is to die for his own sin.”

Note Deuteronomy 24:16

BSB · Berean Standard Bible
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.
KJV · King James Version
but the children of the murderers he didn’t put to death, according to that which is written in the book of the law of Moses, as 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 die for his own sin.”
WEB · World English Bible
but the children of the murderers he put not to death; according to that which is written in the book of the law of Moses, as Jehovah 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 die for his own sin.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

The fathers
Deuteronomy 24:16; Ezekiel 18:4, 20