Deuteronomy 20:1-11

1 When you go forth to battle against your enemies, and see horses, and chariots, [and] a people more than you, you shall not be afraid of them; for the LORD your God is with you, who brought you up out of the land of Mitzrayim.
2 It shall be, when you draw near to the battle, that the Kohen shall approach and speak to the people,
3 and shall tell them, Hear, Yisra'el, you draw near this day to battle against your enemies: don't let your heart faint; don't be afraid, nor tremble, neither be scared of them;
4 for the LORD your God is he who goes with you, to fight for you against your enemies, to save you.
5 The officers shall speak to the people, saying, What man is there who has built a new house, and has not dedicated it? let him go and return to his house, lest he die in the battle, and another man dedicate it.
6 What man is there who has planted a vineyard, and has not used the fruit of it? let him go and return to his house, lest he die in the battle, and another man use the fruit of it.
7 What man is there who has pledged to be married 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.
8 The officers shall speak further to the people, and they shall say, What man is there who is fearful and faint-hearted? let him go and return to his house, lest his brother's heart melt as his heart.
9 It shall be, when the officers have made an end of speaking to the people, that they shall appoint captains of hosts at the head of the people.
10 When you draw near to a city to fight against it, then proclaim shalom to it.
11 It shall be, if it make you answer of shalom, and open to you, then it shall be, that all the people who are found therein shall become tributary to you, and shall serve you.
The Hebrew Names Version is in the public domain.