Deuteronomy 20
2And it shall come to pass whenever thou shalt draw nigh to battle, that the priest shall draw nigh and speak to the people, and shall say to them,
4For it is the Lord your God who advances with you, to fight with you against your enemies, and to save you.
6And what man is he that has planted a vineyard, and not been made merry with it? let him go and return to his house, lest he die in the battle, and another man be made merry with it.
7And what man is he that has betrothed a wife, and has not taken her? let him go and return to his house, lest he die in the battle, and another man take her.
8And the scribes shall speak further to the people, and say, What man is he that fears and is cowardly in his heart? Let him go and return to his house, lest he make the heart of his brother fail, as his own.
9And it shall come to pass when the scribes shall have ceased speaking to the people, that they shall appoint generals of the army to be leaders of the people.
11If then they should answer peaceably to thee, and open to thee, it shall be that all the people found in it shall be tributary and subject to thee.
12But if they will not hearken to thee, but wage war against thee, thou shalt invest it;
13until the Lord thy God shall deliver it into thy hands, and thou shalt smite every male of it with the edge of the sword:
14except the women and the stuff: and all the cattle, and whatsoever shall be in the city, and all the plunder thou shalt take as spoil for thyself, and shalt eat all the plunder of thine enemies whom the Lord thy God gives thee.
15Thus shalt thou do to all the cities that are very far off from thee, not being of the cities of these nations which the Lord thy God gives thee to inherit their land.
16Of these ye shall not take any thing alive;
17but ye shall surely curse them, the Chettite, and the Amorite, and the Chananite, and the Pherezite, and the Evite, and the Jebusite, and the Gergesite; as the Lord thy God commanded thee:
18that they may not teach you to do all their abominations, which they did to their gods, and so ye should sin before the Lord your God.
20But the tree which thou knowest to be not fruit-bearing, this thou shalt destroy and cut down; and thou shalt construct a mound against the city, which makes war against thee, until it be delivered up.