The story of Jehoash's reign.
Jehoash is a good, righteous king, but those temples to Baal, they still haven't been shut down, despite the massacres, famines, plagues, fires and wars. Jehoash's solution is to throw money at god: he instructs his priests use all the taxes and tithing money to repair the temple. Of course they don't do it though it takes him until year 23 of his 40-year reign to notice. He asks them why. Duh, the construction industry is full of graft, even how ever long ago this is supposed to be.
So Jeohash invents the collection box. He instructs his priests to drill a hole in the lid of the chest and place it by the altar. The priests have cleaned up their act, and they give the money to the builders. Not one cent of it goes towards increasing the temple treasury. They do, however, continue to keep the sin money.
Then, in a typically biblical transition, that is to say, one verse is about how the temple repair fund is directly followed, apropos of nothing, by a chapter about the king of Syria invading again. He takes over the town of Gath. Jehoash stupidly takes all of his treasury and sends it to Hazael as a tribute. For that, his servants kill him and install his son Amaziah in his place.