1 "When you go to war against your enemies and observe more horses, chariots, and soldiers than you have, don't be afraid of them, for the LORD your God who brought you out of the land of Egypt is with you. 2 As you draw near for battle, let the priest approach and speak to the army. 3 He will say to them, "Listen, Israel! You're about to go into battle today against your enemies. Don't be faint-hearted. Don't be afraid, don't panic, and don't be terrified to face them. 4 For the LORD your God will be with you, fighting on your behalf against your enemies in order to grant you victory.'
5 "Furthermore, let the officials ask the army, "Is there a man here who has built a new house but has not yet dedicated it? Let him go back home. Otherwise, he may die in battle and another man dedicate it. 6 And is there a man here who has planted a vineyard and not yet benefited from it? Let him go home. Otherwise, he may die in battle and another man use it. 7 And is there a man here who is engaged to a woman and has not yet married her? Let him go back home. Otherwise, he may die in battle and another man marry her.' 8 "Let the officials also speak to the army, "Is there a man here who is afraid and faint-hearted? Let him go back home. Otherwise, he may demoralize his fellow soldier.' 9 "When the officials have finished speaking to the army, they must appoint officers to lead the troops."
10 "When you approach a city to wage war against it, extend terms of peace. 11 If it agrees to peace and welcomes you, then all the people found in it will serve you as forced laborers. 12 But if they refuse to make peace with you and instead choose war, then attack it. 13 The LORD your God will deliver it into your control, and you must execute every male. 14 The women, children, all the livestock in the city, and all of the spoil and plunder will belong to you. Appropriate the spoil of your enemies, which the LORD your God will give you. 15 Do this to all the cities that are distant from you that is, to those cities that are not in neighboring nations." 16 "You are not to leave even one person alive in the cities of these nations that the LORD your God is about to give you as an inheritance. 17 You must completely destroy the Hittites, the Amorites, the Canaanites, the Perizzites, the Hivites, and the Jebusites, just as the LORD your God commanded you, 18 so they won't teach you to do all the detestable things that they do for their gods. If you do what they teach you, you will sin against the LORD your God."
19 "When you attack a city and have to fight against it for many days, don't destroy its trees by cutting them down with an ax. You may eat from them, but you must not cut them down. Are the trees of the field human beings, that you would come and attack them? 20 However, you may cut down the trees whose fruit you know isn't edible, in order to build siege works against the city that waged war with you, until it falls."