2 Chronicles 23:8-11

The people put the crown on Joash's head

8 The Levites and all the men in Judah did everything that Jehoiada the priest had spoken to them about. Each leader took his men who should come into the temple on the Sabbath. And he took his men who should go out of the temple on the Sabbath. Jehoiada the priest did not send anyone to his home. 9 Jehoiada the priest gave spears and large and small shields to the captains over each group of 100 men. Those things had been King David's and they were in the house of God. 10 He told all the men that they must stand with their spears ready. They stood from the north side to the south side of the temple. And they were near the altar and round the king.

11 Jehoiada and his sons brought out the old king's son and they put the crown on his head. They gave to him the laws that kings must obey. Jehoiada and his sons anointed him as king and they shouted, ‘We pray that the king will live for a long time.’ So he became the king of Judah.