Then, in the seventh year, Jehoiada summoned his courage and took the commanders of hundreds into a covenant with him: Azariah son of Jeroham, Ishmael son of Jehohanan, Azariah son of Obed, Maaseiah son of Adaiah, and Elishaphat son of Zichri.
They made a circuit throughout Judah. They gathered the Levites from all the cities of Judah and the heads of the families of Israel, and they came to Jerusalem.
Then the whole assembly made a covenant with the king in God's temple. Jehoiada said to them, "Here is the king's son! He must reign, just as the LORD promised concerning David's sons.
This is what you are to do: one third of you, priests and Levites who are coming on duty on the Sabbath, are to be gatekeepers.
A third are to be at the king's palace, and a third are to be at the Foundation Gate, and all the troops will be in the courtyards of the LORD's temple.
No one is to enter the LORD's temple but the priests and those Levites who serve; they may enter because they are holy, but all the people are to obey the requirement of the LORD.
You must completely surround the king with weapons in hand. Anyone who enters the temple is to be put to death. You must be with the king in all his daily tasks."
So the commanders of hundreds did everything Jehoiada the priest commanded. They each brought their men-- those coming on duty on the Sabbath and those going off duty on the Sabbath-- for Jehoiada the priest did not release the divisions.
Jehoiada the priest gave to the commanders of hundreds King David's spears, shields, and quivers that were in God's temple.
Then he stationed all the troops with their weapons in hand surrounding the king-- from the right side of the temple to the left side, by the altar and by the temple.
They brought out the king's son, put the crown on him, gave him the testimony, and made him king. Jehoiada and his sons anointed him and cried, "Long live the king!"