2 Kings 14:1-7

1 In the second year of the reign of Jehoash son of Jehoahaz as king of Israel, Amaziah son of Joash became king of Judah
2 at the age of twenty-five, and he ruled in Jerusalem for twenty-nine years. His mother was Jehoaddin from Jerusalem.
3 He did what was pleasing to the Lord, but he was not like his ancestor King David; instead, he did what his father Joash had done.
4 He did not tear down the pagan places of worship, and the people continued to offer sacrifices and burn incense there.
5 As soon as Amaziah was firmly in power, he executed the officials who had killed his father, the king.
6 However, he did not kill their children but followed what the Lord had commanded in the Law of Moses: "Parents are not to be put to death for crimes committed by their children, and children are not to be put to death for crimes committed by their parents; people are to be put to death only for a crime they themselves have committed." 1
7 Amaziah killed ten thousand Edomite soldiers in Salt Valley; he captured the city of Sela in battle and called it Joktheel, the name it still has.