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

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.”

Deuteronomy 22:26

22:26 You must not do anything to the young woman – she has done nothing deserving of death. This case is the same as when someone attacks another person and murders him,