2 Chronicles 23:5-11 AMP

5 A [second] third shall be at the king's house, and [the final] third at the Foundation Gate; and all the people shall be in the courts [only] of the house of the Lord.

6 But let none come into the [main] house of the Lord except the priests and those of the Levites who minister; they may go in, for they are holy, but let all the rest of the people carefully observe the law against entering the holy place of the Lord.

7 And the Levites shall surround the young king, every man with his weapons in his hand; and whoever comes into the house [breaking through the ranks of the guard to get near Joash] shall be put to death. But you be with the king when he comes in [from the temple chamber where he is hiding] and when he goes out.

8 So the Levites and all Judah did according to all that Jehoiada the priest had commanded; and took every man his men who were to resume duty on the Sabbath, with those who were to go out on the Sabbath, for Jehoiada the priest did not dismiss the divisions [of priests and Levites].

9 Also Jehoiada the priest gave the captains of hundreds spears, bucklers, and 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 having his weapon (missile) in his hand, from the right side to the left side of the temple, around the altar and the temple.

11 Then they brought out the king's son and put the crown on him and gave him the testimony or law and made him king. And Jehoiada and his sons anointed him and said, Long live the king!