2 Chronicles 23:4-10
23:4 This is what you must do. One third of you priests and Levites who are on duty during the Sabbath will guard the doors.
23:5 Another third of you will be stationed at the royal palace and still another third at the Foundation Gate. All the others will stand in the courtyards of the Lord’s temple.
23:6 No one must enter the Lord’s temple except the priests and Levites who are on duty. They may enter because they are ceremonially pure. All the others should carry out their assigned service to the Lord.
23:7 The Levites must surround the king. Each of you must hold his weapon in his hand. Whoever tries to enter the temple must be killed. You must accompany the king wherever he goes.”
23:8 The Levites and all the men of Judah did just as Jehoiada the priest ordered. Each of them took his men, those who were on duty during the Sabbath as well as those who were off duty on the Sabbath. Jehoiada the priest did not release his divisions from their duties.
23:9 Jehoiada the priest gave to the officers of the units of hundreds King David’s spears and shields that were kept in God’s temple.
23:10 He placed the men at their posts, each holding his weapon in his hand. They lined up from the south side of the temple to the north side and stood near the altar and the temple, surrounding the king.