1 Chronicles 9:27

New International Version Bible (NIV)
They would spend the night stationed around the house of God, because they had to guard it; and they had charge of the key for opening it each morning.

Read 1 Chronicles 9:27 in other translations