Nehemiah 4:22

Likewise at the same time said I unto the people, Let every one with his servant lodge within Jerusalem, that in the night they may be a guard to us, and labour on the day.

Those who lived outside Jerusalem were directed to lodge with their servants inside the city at night rather than return to their homes. In the night they were to serve as a guard over the work, and by day they were to be present and ready to labor. Remaining within the walls avoided delay in beginning the work each morning. It also protected the workers from being attacked by the enemy while traveling back and forth between their homes and the city.