They would spend the night around the house of God, since it was their duty to guard it and to open the gates every morning. 1 Chronicles 9:27
This verse made me think of another verse, Colossians 3:23, which reads: Work willingly at whatever you do, as though you were working for the Lord rather than for people.
In this case, the chief gatekeepers were working for the Lord, as they were "responsible for the rooms and treasures at the house of God" (v26).
That is a great responsibility to guard the treasures of the house of God. But when you think about it, people are the greatest treasures of God, and a lot of us are in positions where we are responsible for people.
It kinda relates to the sermon we had on Sunday about how people are not "only human". People are made in the image of God. So next time you're in charge, whether it be as a parent, a Sunday school volunteer, or the leader of a school project, remember that you are "guarding God's treasures".
Tomorrow's Bible In a Year Passage: Joel 1-3