2 Chronicles 25:4

New International Reader's Version Bible (NIRV)
But he didn’t put their children to death. He obeyed what is written in the Law, the Book of Moses. There the Lord commanded, “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.” (Deuteronomy 24:16)

Read 2 Chronicles 25:4 in other translations