Deuteronomy 23:9

9 And if thou shouldest go forth to engage with thine enemies, then thou shalt keep thee from every wicked thing.

Deuteronomy 23:9 Meaning and Commentary

Deuteronomy 23:9

When the host goeth forth against thine enemies
An army of soldiers march in order to meet the enemy and fight him:

then keep thee from every wicked thing;
the Targum of Jonathan adds, by way of explanation,

``from strange worship, uncovering of nakedness, and from shedding innocent blood;''

that is, from idolatry, uncleanness of every sort, and murder; and all other wickednesses ought to be abstained from at all times by all persons, but especially by soldiers in such a circumstance, just going to battle; since sin committed weakens natural courage, as it loads the conscience with guilt; and since victory and success, which depend upon the blessing of God on arms, cannot be reasonably expected, where vices of all sorts are indulged and abound; and especially seeing such are about to expose their lives to the utmost danger, and know not but that in a few hours they must exchange this life for another, and appear before God, the Judge of all, against whom they sin; and yet how little are these things thought of by such in common! it was the wisdom of the Jewish legislature, which was of God, to inculcate such things into the minds of their soldiers.

Deuteronomy 23:9 In-Context

7 Thou shalt not abhor an Edomite, because he is thy brother; thou shalt not abhor an Egyptian, because thou wast a stranger in his land.
8 If sons be born to them, in the third generation they shall enter into the assembly of the Lord.
9 And if thou shouldest go forth to engage with thine enemies, then thou shalt keep thee from every wicked thing.
10 If there should be in thee a man who is not clean by reason of his issue by night, then he shall go forth out of the camp, and he shall not enter into the camp.
11 And it shall come to pass toward evening he shall wash his body with water, and when the sun has gone down, he shall go into the camp.

The Brenton translation of the Septuagint is in the public domain.