Deuteronomy 20:5
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.
Deuteronomy 20:7-8
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.”
Deuteronomy 24:5
24:5 When a man is newly married, he need not go into the army nor be obligated in any way; he must be free to stay at home for a full year and bring joy to the wife he has married.