Laws of Sanitation

9 When you are encamped against your enemies you shall guard against any impropriety. 10 If one of you becomes unclean because of a nocturnal emission, then he shall go outside the camp; he must not come within the camp. 11 When evening comes, he shall wash himself with water, and when the sun has set, he may come back into the camp. 12 You shall have a designated area outside the camp to which you shall go. 13 With your utensils you shall have a trowel; when you relieve yourself outside, you shall dig a hole with it and then cover up your excrement. 14 Because the Lord your God travels along with your camp, to save you and to hand over your enemies to you, therefore your camp must be holy, so that he may not see anything indecent among you and turn away from you

Matthew Henry's Commentary on Deuteronomy 23:9-14

Commentary on Deuteronomy 23:9-14

(Read Deuteronomy 23:9-14)

The camp of the Lord must have nothing offensive in it. If there must be this care taken to preserve the body clean, much more should we be careful to keep the mind pure.