The commanders of hundreds did exactly as Jehoiada the priest commanded. Each took his men — those coming on duty on the Sabbath and those going off duty — and came to Jehoiada the priest.
In context
7The other two divisions of you, all who go off duty on the Sabbath, are to guard the temple of Yahweh for the king. 8Station yourselves around the king, each man with his weapon in hand, and put to death anyone who breaks through the ranks. Stay close to the king wherever he goes.” 9The commanders of hundreds did exactly as Jehoiada the priest commanded. Each took his men — those coming on duty on the Sabbath and those going off duty — and came to Jehoiada the priest. 10The priest gave the commanders of hundreds the spears and shields that had belonged to King David, which were kept in the temple of Yahweh. 11The guards, each with weapon in hand, took their positions around the king, from the south side of the temple to the north side, surrounding the altar and the temple.