2 Chronicles 23 King James Version (KJV)
23 And in the seventh year Jehoiada strengthened himself, and took the captains of hundreds, Azariah the son of Jeroham, and Ishmael the son of Jehohanan, and Azariah the son of Obed, and Maaseiah the son of Adaiah, and Elishaphat the son of Zichri, into covenant with him.
2 And they went about in Judah, and gathered the Levites out of all the cities of Judah, and the chief of the fathers of Israel, and they came to Jerusalem.
3 And all the congregation made a covenant with the king in the house of God. And he said unto them, Behold, the king's son shall reign, as the Lord hath said of the sons of David.
4 This is the thing that ye shall do; A third part of you entering on the sabbath, of the priests and of the Levites, shall be porters of the doors;
5 And a third part shall be at the king's house; and a third part at the gate of the foundation: and all the people shall be in the courts of the house of the Lord.
6 But let none come into the house of the Lord, save the priests, and they that minister of the Levites; they shall go in, for they are holy: but all the people shall keep the watch of the Lord.
7 And the Levites shall compass the king round about, every man with his weapons in his hand; and whosoever else cometh into the house, he shall be put to death: but be ye with the king when he cometh in, and when he goeth out.
8 So the Levites and all Judah did according to all things that Jehoiada the priest had commanded, and took every man his men that were to come in on the sabbath, with them that were to go out on the sabbath: for Jehoiada the priest dismissed not the courses.
9 Moreover Jehoiada the priest delivered to the captains of hundreds spears, and bucklers, and shields, that had been king David's, which were in the house of God.
10 And he set all the people, every man having his weapon in his hand, from the right side of the temple to the left side of the temple, along by the altar and the temple, by the king round about.
11 Then they brought out the king's son, and put upon him the crown, and gave him the testimony, and made him king. And Jehoiada and his sons anointed him, and said, God save the king.
12 Now when Athaliah heard the noise of the people running and praising the king, she came to the people into the house of the Lord:
13 And she looked, and, behold, the king stood at his pillar at the entering in, and the princes and the trumpets by the king: and all the people of the land rejoiced, and sounded with trumpets, also the singers with instruments of musick, and such as taught to sing praise. Then Athaliah rent her clothes, and said, Treason, Treason.
14 Then Jehoiada the priest brought out the captains of hundreds that were set over the host, and said unto them, Have her forth of the ranges: and whoso followeth her, let him be slain with the sword. For the priest said, Slay her not in the house of the Lord.
15 So they laid hands on her; and when she was come to the entering of the horse gate by the king's house, they slew her there.
16 And Jehoiada made a covenant between him, and between all the people, and between the king, that they should be the Lord's people.
17 Then all the people went to the house of Baal, and brake it down, and brake his altars and his images in pieces, and slew Mattan the priest of Baal before the altars.
18 Also Jehoiada appointed the offices of the house of the Lord by the hand of the priests the Levites, whom David had distributed in the house of the Lord, to offer the burnt offerings of the Lord, as it is written in the law of Moses, with rejoicing and with singing, as it was ordained by David.
19 And he set the porters at the gates of the house of the Lord, that none which was unclean in any thing should enter in.
20 And he took the captains of hundreds, and the nobles, and the governors of the people, and all the people of the land, and brought down the king from the house of the Lord: and they came through the high gate into the king's house, and set the king upon the throne of the kingdom.
21 And all the people of the land rejoiced: and the city was quiet, after that they had slain Athaliah with the sword.
2 Chronicles 23 New International Version (NIV)
23 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. 10 He stationed all the men, each with his weapon in his hand, around the king—near the altar and the temple, from the south side to the north side of the temple.
11 Jehoiada and his sons brought out the king’s son and put the crown on him; they presented him with a copy of the covenant and proclaimed him king. They anointed him and shouted, “Long live the king!”
12 When Athaliah heard the noise of the people running and cheering the king, she went to them at the temple of the Lord. 13 She looked, and there was the king, standing by his pillar at the entrance. The officers and the trumpeters were beside the king, and all the people of the land were rejoicing and blowing trumpets, and musicians with their instruments were leading the praises. Then Athaliah tore her robes and shouted, “Treason! Treason!”
14 Jehoiada the priest sent out the commanders of units of a hundred, who were in charge of the troops, and said to them: “Bring her out between the ranks[b] and put to the sword anyone who follows her.” For the priest had said, “Do not put her to death at the temple of the Lord.” 15 So they seized her as she reached the entrance of the Horse Gate on the palace grounds, and there they put her to death.
16 Jehoiada then made a covenant that he, the people and the king[c] would be the Lord’s people. 17 All the people went to the temple of Baal and tore it down. They smashed the altars and idols and killed Mattan the priest of Baal in front of the altars.
18 Then Jehoiada placed the oversight of the temple of the Lord in the hands of the Levitical priests, to whom David had made assignments in the temple, to present the burnt offerings of the Lord as written in the Law of Moses, with rejoicing and singing, as David had ordered. 19 He also stationed gatekeepers at the gates of the Lord’s temple so that no one who was in any way unclean might enter.
20 He took with him the commanders of hundreds, the nobles, the rulers of the people and all the people of the land and brought the king down from the temple of the Lord. They went into the palace through the Upper Gate and seated the king on the royal throne. 21 All the people of the land rejoiced, and the city was calm, because Athaliah had been slain with the sword.