One Sabbath day I saw some men of Judah treading their winepresses. They were also bringing in bundles of grain and loading them on their donkeys. And on that day they were bringing their wine, grapes, figs, and all sorts of produce to Jerusalem to sell. So I rebuked them for selling their produce on the Sabbath.
There were also some men from Tyre bringing in fish and all kinds of merchandise. They were selling it on the Sabbath to the people of Judah -- and in Jerusalem at that!
So I confronted the leaders of Judah, "Why are you profaning the Sabbath in this evil way?
Wasn't it enough that your ancestors did this sort of thing, so that our God brought the present troubles upon us and our city? Now you are bringing even more wrath upon the people of Israel by permitting the Sabbath to be desecrated in this way!"
So I commanded that from then on the gates of the city should be shut as darkness fell every Friday evening, not to be opened until the Sabbath ended. I also sent some of my own servants to guard the gates so that no merchandise could be brought in on the Sabbath day.
References for Nehemiah 13:19
The merchants and tradesmen with a variety of wares camped outside Jerusalem once or twice.
But I spoke sharply to them and said, "What are you doing out here, camping around the wall? If you do this again, I will arrest you!" And that was the last time they came on the Sabbath.
Then I commanded the Levites to purify themselves and to guard the gates in order to preserve the holiness of the Sabbath. Remember this good deed also, O my God! Have compassion on me according to your great and unfailing love.