And two parts of all you that go forth on the sabbath, even they shall keep the watch of the house of the LORD about the king.
the two divisions that would go off duty on the Sabbath are to guard the house of the LORD for the king.
Read 2 Kings 11