2 Kings 11:9

And the captains over the hundreds did according to all things that Jehoiada the priest commanded: and they took every man his men that were to come in on the sabbath, with them that should go out on the sabbath, and came to Jehoiada the priest.

The captains over the hundreds did according to all that Jehoiada the priest commanded, each taking his men who were to come in on the Sabbath together with those who were to go out on the Sabbath, and coming to Jehoiada the priest. The incoming and outgoing watches were thus assembled together at the temple on the Sabbath, when the soldiers' watch was rearranged for the plan to protect Joash. By keeping the relieved guards that would have gone out with the guards coming in, the force at the temple was doubled to guard Joash as the rightful king.

After Ahaziah died, Athaliah usurped the kingdom and sought to destroy the royal children to remove them from her way, but the infant Joash and his nurse were hidden in the temple by his aunt, the wife of Jehoiada the high priest, until he could be proclaimed king. The obedience of the captains belonged to an uprising by the officials that ended Athaliah's corrupt rule, brought seven-year-old Joash out of hiding to make him king, and ended with Athaliah slain and the surviving child placed on the throne. While Jehoiada lived the young king remained under his influence, the house of the Lord was repaired, and the worship of the true God was established again.

The changing of the temple guards' shifts on the Sabbath was part of the regular order, so the incidental account presents Sabbath observance as recognized. This Sabbath mention belongs to Joash's coronation, the same event as the Sabbath references in 2 Kings 11:5, 7 and 2 Chronicles 23:4, 8, and is counted as one of five mentions of the Sabbath in 2 Kings. The coronation is dated to 889 B.C., while the accession of Jehoash to the throne of Judah is placed by those who held the later reckoning at around 778 B.C. It is the first mention of the Sabbath after Moses in this account, following a span of 677 years. The long gap without a recorded mention since Moses does not prove the Sabbath was unknown, just as the lack of mentions between creation and Moses would not disprove its earlier institution.