Deuteronomy 23:9

When the host goeth forth against thine enemies, then keep thee from every wicked thing.

Cross-reference

Deuteronomy 20:8 addresses fear in the camp, another aspect of military conduct alongside the purity command in 23:9.

Joshua 6:18 Parallel

Joshua 6:18 commands abstaining from accursed things during battle, applying the same principle of keeping the camp holy as here.

Joshua 7:11-13 shows Israel's defeat because Achan violated the command to keep from evil — the opposite of obeying this verse.

Luke 3:14 Parallel

In Luke 3:14, John instructs soldiers on ethical conduct, closely echoing the command to keep from evil while serving.