"When you go forth to war against your enemies, and see horses and chariots and 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 out of the land of Egypt.
And when you draw near to the battle, the priest shall come forward and speak to the people,
and shall say to them, 'Hear, O Israel, you draw near this day to battle against your enemies: let not your heart faint; do not fear, or tremble, or be in dread of them;
for the LORD your God is he that goes with you, to fight for you against your enemies, to give you the victory.'
Then the officers shall speak to the people, saying, 'What man is there that has built a new house and has not dedicated it? Let him go back to his house, lest he die in the battle and another man dedicate it.
And what man is there that has planted a vineyard and has not enjoyed its fruit? Let him go back to his house, lest he die in the battle and another man enjoy its fruit.
And what man is there that has betrothed a wife and has not taken her? Let him go back to his house, lest he die in the battle and another man take her.'
And the officers shall speak further to the people, and say, 'What man is there that is fearful and fainthearted? Let him go back to his house, lest the heart of his fellows melt as his heart.'
And when the officers have made an end of speaking to the people, then commanders shall be appointed at the head of the people.
"When you draw near to a city to fight against it, offer terms of peace to it.
And if its answer to you is peace and it opens to you, then all the people who are found in it shall do forced labor for you and shall serve you.
But if it makes no peace with you, 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,
but the women and the little ones, the cattle, and everything else in the city, all its spoil, you shall take as booty for yourselves; and you shall enjoy the spoil of your enemies, which the LORD your God has given you.
Thus you shall do to all the cities which are very far from you, which are not cities of the nations here.
But in the cities of these peoples that the LORD your God gives you for an inheritance, you shall save alive nothing that breathes,
but you shall utterly destroy them, the Hittites and the Amorites, the Canaanites and the Per'izzites, the Hivites and the Jeb'usites, as the LORD your God has commanded;
that they may not teach you to do according to all their abominable practices which they have done in the service of their gods, and so to sin against the LORD your God.
"When you besiege a city for a long time, making war against it in order to take it, you shall not destroy its trees by wielding an axe against them; for you may eat of them, but you shall not cut them down. Are the trees in the field men that they should be besieged by you?
Only the trees which you know are not trees for food you may destroy and cut down that you may build siegeworks against the city that makes war with you, until it falls.