2 Chronicles 22-24 (ESV)
Ahaziah Reigns in Judah
22:1 And the inhabitants of Jerusalem made Ahaziah, his youngest son, king in his place, for the band of men that came with the Arabians to the camp had killed all the older sons. So Ahaziah the son of Jehoram king of Judah reigned. 2 Ahaziah was twenty-two years old when he began to reign, and he reigned one year in Jerusalem. His mother’s name was Athaliah, the granddaughter of Omri. 3 He also walked in the ways of the house of Ahab, for his mother was his counselor in doing wickedly. 4 He did what was evil in the sight of the Lord, as the house of Ahab had done. For after the death of his father they were his counselors, to his undoing. 5 He even followed their counsel and went with Jehoram the son of Ahab king of Israel to make war against Hazael king of Syria at Ramoth-gilead. And the Syrians wounded Joram, 6 and he returned to be healed in Jezreel of the wounds that he had received at Ramah, when he fought against Hazael king of Syria. And Ahaziah the son of Jehoram king of Judah went down to see Joram the son of Ahab in Jezreel, because he was wounded.
7 But it was ordained by God that the downfall of Ahaziah should come about through his going to visit Joram. For when he came there, he went out with Jehoram to meet Jehu the son of Nimshi, whom the Lord had anointed to destroy the house of Ahab. 8 And when Jehu was executing judgment on the house of Ahab, he met the princes of Judah and the sons of Ahaziah’s brothers, who attended Ahaziah, and he killed them. 9 He searched for Ahaziah, and he was captured while hiding in Samaria, and he was brought to Jehu and put to death. They buried him, for they said, “He is the grandson of Jehoshaphat, who sought the Lord with all his heart.” And the house of Ahaziah had no one able to rule the kingdom.
Athaliah Reigns in Judah
10 Now when Athaliah the mother of Ahaziah saw that her son was dead, she arose and destroyed all the royal family of the house of Judah.11 But Jehoshabeath,  the daughter of the king, took Joash the son of Ahaziah and stole him away from among the king’s sons who were about to be put to death, and she put him and his nurse in a bedroom. Thus Jehoshabeath, the daughter of King Jehoram and wife of Jehoiada the priest, because she was a sister of Ahaziah, hid him  from Athaliah, so that she did not put him to death. 12 And he remained with them six years, hidden in the house of God, while Athaliah reigned over the land.
Joash Made King
23:1 But in the seventh year Jehoiada took courage and entered into a covenant with the commanders of hundreds, Azariah the son of Jeroham, Ishmael the son of Jehohanan, Azariah the son of Obed, Maaseiah the son of Adaiah, and Elishaphat the son of Zichri. 2 And they went about through Judah and gathered the Levites from all the cities of Judah, and the heads of fathers’ houses of Israel, and they came to Jerusalem.3 And all the assembly made a covenant with the king in the house of God. And Jehoiada  said to them, “Behold, the king’s son! Let him reign, as the Lord spoke concerning the sons of David. 4 This is the thing that you shall do: of you priests and Levites who come off duty on the Sabbath, one third shall be gatekeepers, 5 and one third shall be at the king’s house and one third at the Gate of the Foundation. And all the people shall be in the courts of the house of the Lord. 6 Let no one enter the house of the Lord except the priests and ministering Levites. They may enter, for they are holy, but all the people shall keep the charge of the Lord. 7 The Levites shall surround the king, each with his weapons in his hand. And whoever enters the house shall be put to death. Be with the king when he comes in and when he goes out.”
8 The Levites and all Judah did according to all that Jehoiada the priest commanded, and they each brought his men, who were to go off duty on the Sabbath, with those who were to come on duty on the Sabbath, for Jehoiada the priest did not dismiss the divisions. 9 And Jehoiada the priest gave to the captains the spears and the large and small shields that had been King David’s, which were in the house of God. 10 And he set all the people as a guard for the king, every man with his weapon in his hand, from the south side of the house to the north side of the house, around the altar and the house. 11 Then they brought out the king’s son and put the crown on him and gave him the testimony. And they proclaimed him king, and Jehoiada and his sons anointed him, and they said, “Long live the king.”
12 When Athaliah heard the noise of the people running and praising the king, she went into the house of the Lord to the people. 13 And when she looked, there was the king standing by his pillar at the entrance, and the captains and the trumpeters beside the king, and all the people of the land rejoicing and blowing trumpets, and the singers with their musical instruments leading in the celebration. And Athaliah tore her clothes and cried, “Treason! Treason!” 14 Then Jehoiada the priest brought out the captains who were set over the army, saying to them, “Bring her out between the ranks, and anyone who follows her is to be put to death with the sword.” For the priest said, “Do not put her to death in the house of the Lord.” 15 So they laid hands on her,  and she went into the entrance of the horse gate of the king’s house, and they put her to death there.
16 And Jehoiada made a covenant between himself and all the people and the king that they should be the Lord‘s people. 17 Then all the people went to the house of Baal and tore it down; his altars and his images they broke in pieces, and they killed Mattan the priest of Baal before the altars. 18 And Jehoiada posted watchmen for the house of the Lord under the direction of the Levitical priests and the Levites whom David had organized to be in charge of the house of the Lord, to offer burnt offerings to the Lord, as it is written in the Law of Moses, with rejoicing and with singing, according to the order of David. 19 He stationed the gatekeepers at the gates of the house of the Lord so that no one should enter who was in any way unclean. 20 And he took the captains, the nobles, the governors of the people, and all the people of the land, and they brought the king down from the house of the Lord, marching through the upper gate to the king’s house. And they set the king on the royal throne. 21 So all the people of the land rejoiced, and the city was quiet after Athaliah had been put to death with the sword.
Joash Repairs the Temple
24:1 Joash  was seven years old when he began to reign, and he reigned forty years in Jerusalem. His mother’s name was Zibiah of Beersheba. 2 And Joash did what was right in the eyes of the Lord all the days of Jehoiada the priest. 3 Jehoiada got for him two wives, and he had sons and daughters.
4 After this Joash decided to restore the house of the Lord. 5 And he gathered the priests and the Levites and said to them, “Go out to the cities of Judah and gather from all Israel money to repair the house of your God from year to year, and see that you act quickly.” But the Levites did not act quickly. 6 So the king summoned Jehoiada the chief and said to him, “Why have you not required the Levites to bring in from Judah and Jerusalem the tax levied by Moses, the servant of the Lord, and the congregation of Israel for the tent of testimony?” 7 For the sons of Athaliah, that wicked woman, had broken into the house of God, and had also used all the dedicated things of the house of the Lord for the Baals.
8 So the king commanded, and they made a chest and set it outside the gate of the house of the Lord. 9 And proclamation was made throughout Judah and Jerusalem to bring in for the Lord the tax that Moses the servant of God laid on Israel in the wilderness. 10 And all the princes and all the people rejoiced and brought their tax and dropped it into the chest until they had finished.  11 And whenever the chest was brought to the king’s officers by the Levites, when they saw that there was much money in it, the king’s secretary and the officer of the chief priest would come and empty the chest and take it and return it to its place. Thus they did day after day, and collected money in abundance. 12 And the king and Jehoiada gave it to those who had charge of the work of the house of the Lord, and they hired masons and carpenters to restore the house of the Lord, and also workers in iron and bronze to repair the house of the Lord. 13 So those who were engaged in the work labored, and the repairing went forward in their hands, and they restored the house of God to its proper condition and strengthened it. 14 And when they had finished, they brought the rest of the money before the king and Jehoiada, and with it were made utensils for the house of the Lord, both for the service and for the burnt offerings, and dishes for incense and vessels of gold and silver. And they offered burnt offerings in the house of the Lord regularly all the days of Jehoiada.
15 But Jehoiada grew old and full of days, and died. He was 130 years old at his death. 16 And they buried him in the city of David among the kings, because he had done good in Israel, and toward God and his house.
17 Now after the death of Jehoiada the princes of Judah came and paid homage to the king. Then the king listened to them. 18 And they abandoned the house of the Lord, the God of their fathers, and served the Asherim and the idols. And wrath came upon Judah and Jerusalem for this guilt of theirs. 19 Yet he sent prophets among them to bring them back to the Lord. These testified against them, but they would not pay attention.
20 Then the Spirit of God clothed Zechariah the son of Jehoiada the priest, and he stood above the people, and said to them, “Thus says God, ‘Why do you break the commandments of the Lord, so that you cannot prosper? Because you have forsaken the Lord, he has forsaken you.’” 21 But they conspired against him, and by command of the king they stoned him with stones in the court of the house of the Lord. 22 Thus Joash the king did not remember the kindness that Jehoiada, Zechariah’s father, had shown him, but killed his son. And when he was dying, he said, “May the Lordsee and avenge!” 
23 At the end of the year the army of the Syrians came up against Joash. They came to Judah and Jerusalem and destroyed all the princes of the people from among the people and sent all their spoil to the king of Damascus. 24 Though the army of the Syrians had come with few men, the Lorddelivered into their hand a very great army, because Judah  had forsaken the Lord, the God of their fathers. Thus they executed judgment on Joash.
25 When they had departed from him, leaving him severely wounded, his servants conspired against him because of the blood of the son  of Jehoiada the priest, and killed him on his bed. So he died, and they buried him in the city of David, but they did not bury him in the tombs of the kings. 26 Those who conspired against him were Zabad the son of Shimeath the Ammonite, and Jehozabad the son of Shimrith the Moabite.27 Accounts of his sons and of the many oracles against him and of the rebuilding  of the house of God are written in the Story of the Book of the Kings. And Amaziah his son reigned in his place.