Deuteronomy 20:1-8
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.
20:6 Or who among you has planted a vineyard and not benefited from it? He may go home, lest he die in battle and someone else benefit from it.
20:7 Or who among you has become engaged to a woman but has not married her? He may go home, lest he die in battle and someone else marry her.”
20:8 In addition, the officers are to say to the troops, “Who among you is afraid and fainthearted? He may go home so that he will not make his fellow soldier’s heart as fearful as his own.”