Deuteronomy 20:1-5
Laws Concerning War with Distant Enemies
20:1 When you go to war against your enemies and see chariotry and troops who outnumber you, do not be afraid of them, for the Lord your God, who brought you up out of the land of Egypt, is with you.
20:2 As you move forward for battle, the priest will approach and say to the soldiers,
20:3 “Listen, Israel! Today you are moving forward to do battle with your enemies. Do not be fainthearted. Do not fear and tremble or be terrified because of them,
20:4 for the Lord your God goes with you to fight on your behalf against your enemies to give you victory.”
20:5 Moreover, the officers are to say to the troops, “Who among you has built a new house and not dedicated it? He may go home, lest he die in battle and someone else dedicate it.