ESV: "When you are encamped against your enemies, then you shall keep yourself from every evil thing.
NIV: When you are encamped against your enemies, keep away from everything impure.
NASB: When you go out as an army against your enemies, you shall be on guard against every evil thing.
CSB: "When you are encamped against your enemies, be careful to avoid anything offensive.
NLT: When you go to war against your enemies, be sure to stay away from anything that is impure.
KJV: When the host goeth forth against thine enemies, then keep thee from every wicked thing.
NKJV: “When the army goes out against your enemies, then keep yourself from every wicked thing.