Deuteronomy 23:9

9 When you are encamped against your enemies you shall guard against any impropriety.