Deuteronomy 23:9
When you are encamped against your enemies, then you shall keep yourself from every wicked thing.
Berean Standard Bible
When the host goeth forth against thine enemies, then keep thee from every wicked thing.
When you go out and camp against your enemies, then you shall keep yourselves from every evil thing.