In the seventh year Jehoiada sent for the commanders of units of a hundred, the Carites and the guards and had them brought to him at the temple of the LORD. He made a covenant with them and put them under oath at the temple of the LORD. Then he showed them the king’s son.
He commanded them, saying, “This is what you are to do: You who are in the three companies that are going on duty on the Sabbath—a third of you guarding the royal palace,
a third at the Sur Gate, and a third at the gate behind the guard, who take turns guarding the temple—
and you who are in the other two companies that normally go off Sabbath duty are all to guard the temple for the king.
Station yourselves around the king, each of you with weapon in hand. Anyone who approaches your ranks is to be put to death. Stay close to the king wherever he goes.”
The commanders of units of a hundred 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—and came to Jehoiada the priest.
Then he gave the commanders the spears and shields that had belonged to King David and that were in the temple of the LORD.
The guards, each with weapon in hand, stationed themselves around the king—near the altar and the temple, from the south side to the north side of the temple.
Jehoiada brought out the king’s son and put the crown on him; he presented him with a copy of the covenant and proclaimed him king. They anointed him, and the people clapped their hands and shouted, “Long live the king!”