Athaliah and Joash

1 In the seventh year Jehoiada showed his strength. He made a covenant with the commanders of units of a hundred: Azariah son of Jeroham, Ishmael son of Jehohanan, Azariah son of Obed, Maaseiah son of Adaiah, and Elishaphat son of Zikri.
2 They went throughout Judah and gathered the Levites and the heads of Israelite families from all the towns. When they came to Jerusalem,
3 the whole assembly made a covenant with the king at the temple of God. Jehoiada said to them, “The king’s son shall reign, as the LORD promised concerning the descendants of David.
4 Now this is what you are to do: A third of you priests and Levites who are going on duty on the Sabbath are to keep watch at the doors,
5 a third of you at the royal palace and a third at the Foundation Gate, and all the others are to be in the courtyards of the temple of the LORD.
6 No one is to enter the temple of the LORD except the priests and Levites on duty; they may enter because they are consecrated, but all the others are to observe the LORD’s command not to enter.a
7 The Levites are to station themselves around the king, each with weapon in hand. Anyone who enters the temple is to be put to death. Stay close to the king wherever he goes.”
8 The Levites and all the men of Judah did just as Jehoiada the priest ordered. Each one took his men—those who were going on duty on the Sabbath and those who were going off duty—for Jehoiada the priest had not released any of the divisions.
9 Then he gave the commanders of units of a hundred the spears and the large and small shields that had belonged to King David and that were in the temple of God.