Nehemiah 13:18-20

18 Did not your fathers thus, and did not our God bring all this evil upon us, and upon this city? Yet ye bring more wrath upon Israel by profaning the Sabbath.

19 And it came to pass that, when the gates of Jerusalem began to be dark before the Sabbath, I commanded that the doors should be shut, and commanded that they should not be opened till after the Sabbath. And I set some of my servants over the gates that there should be no burden brought in on the Sabbath day.

20 So the merchants and sellers of all kind of wares lodged without Jerusalem once or twice.