Deuteronomy 20:5-6
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.