2 Kings 11:1-21 Athaliah, the mother of Ahaziah and daughter of Ahab and Jezebel, grabs power in Judah in 842BC. She murders all the princes except Joash, the baby son of Ahaziah, who is hidden in the Temple by his nurse. When he is seven years old, Joash is proclaimed King of Judah by Jehoiada the priest. Joash and Jehoiada make a covenant promise with the LORD and destroy the temple of Baal in Jerusalem.
2 Kings 12:1-16 During his reign (835-795BC), Joash supervises extensive repairs to the Temple built by Solomon in Jerusalem. He installs the first collection box in the Temple so worshippers can make an offering towards the cost of the Temple repairs.
Plan of Solomon's Temple drawn in 1905 (Internet Archive Book Images)
2 Kings 12:17-21 Some years later, in 811BC, King Hazael of Syria attacks Gath and then turns his attention on Jerusalem. Joash buys him off with gold from the Temple treasury. When he is forty seven years old (in 795BC), Joash is murdered by his officials at Beth Millo on the road down from Jerusalem to Silla. Joash is succeeded as King of Judah by his son Amaziah (who reigns from 795 to 767BC).