When you go out to war against your enemies, and see horses and chariots, an army larger than your own, you shall not be afraid of them; for the Lord your God is with you, who brought you up from the land of Egypt.
Before you engage in battle, the priest shall come forward and speak to the troops,
and shall say to them: "Hear, O Israel! Today you are drawing near to do battle against your enemies. Do not lose heart, or be afraid, or panic, or be in dread of them;
for it is the Lord your God who goes with you, to fight for you against your enemies, to give you victory."
Then the officials shall address the troops, saying, "Has anyone built a new house but not dedicated it? He should go back to his house, or he might die in the battle and another dedicate it.
Has anyone planted a vineyard but not yet enjoyed its fruit? He should go back to his house, or he might die in the battle and another be first to enjoy its fruit.
Has anyone become engaged to a woman but not yet married her? He should go back to his house, or he might die in the battle and another marry her."
The officials shall continue to address the troops, saying, "Is anyone afraid or disheartened? He should go back to his house, or he might cause the heart of his comrades to melt like his own."
When the officials have finished addressing the troops, then the commanders shall take charge of them.
When you draw near to a town to fight against it, offer it terms of peace.
If it accepts your terms of peace and surrenders to you, then all the people in it shall serve you at forced labor.
If it does not submit to you peacefully, but makes war against you, then you shall besiege it;
and when the Lord your God gives it into your hand, you shall put all its males to the sword.
You may, however, take as your booty the women, the children, livestock, and everything else in the town, all its spoil. You may enjoy the spoil of your enemies, which the Lord your God has given you.
Thus you shall treat all the towns that are very far from you, which are not towns of the nations here.