2 Kings 12:1-22
Joash became king of Judah, and he ruled in Jerusalem for forty years. …Throughout his life he did what pleased the Lord, because Jehoiada the priest instructed him.
A bit glossed over: 2 Chronicles 24:17-22 tells a different story…
…The priests agreed to this and also agreed not to make the repairs in the Temple.
Then Jehoiada took a box, made a hole in the lid, and placed the box by the altar, on the right side as one enters the Temple.