Deuteronomy 20
2And it shall be, when ye come nigh unto the battle, that the priest shall approach and speak unto the people;
3And he shall say unto them, Hear, O Israel, ye come nigh this day unto the battle against your enemies: let not your hearts faint, fear not, and be not downcast, and do not tremble because of them:
4For the Lord your God it is who goeth with you, to fight for you against your enemies, to help you.
5And the officers shall speak unto the people, saying, What man is there who hath built a new house, and hath not dedicated it? let him go and return unto his house, lest he die in the battle, and another man dedicate it.
6And what man is there who hath planted a vineyard, and hath not redeemed it? let him go and return unto his house, lest he die in the battle, and another man redeem it.
7And what man is there that hath betrothed a wife, and hath not taken her? let him go and return unto his house, lest he die in the battle, and another man take her.
8And the officers shall speak yet farther unto the people, and they shall say, What man is there that is fearful and faint-hearted? let him go and return unto his house, that the heart of his brethren become not as faint as his heart.
9And it shall be, when the officers have made an end of speaking unto the people, that they shall appoint captains of the armies at the head of the people.
11And it shall be, if it make thee an answer of peace, and open [its gates] unto thee: then shall it be, that all the people that are found therein shall be tributaries unto thee, and they shall serve thee.
12But if it will not make peace with thee, and wageth war against thee; then shalt thou besiege it;
13And when the Lord thy God hath delivered it into thy hands, thou shalt smite every male thereof with the edge of the sword;
15Thus shalt thou do unto all the cities which are very far off from thee, which are not of the cities of these nations.
16But of the cities of these people, which the Lord thy God doth give thee for an inheritance, shalt thou not let live a single soul.
17But thou shalt utterly devote them; namely, the Hittites, and the Emorites, the Canaanites, and the Perizzites, and the Hivites, and the Jebusites; as the Lord thy God hath commanded thee;
18In order that they may not teach you to do in accordance with all their abominations, which they have done unto their gods; and ye would thus sin against the Lord your God.