Laws of Sanitation

9 "When you go to war against your enemies, be sure to stay away from anything that is impure. 10 "Any man who becomes ceremonially defiled because of a nocturnal emission must leave the camp and stay away all day. 11 Toward evening he must bathe himself, and at sunset he may return to the camp. 12 "You must have a designated area outside the camp where you can go to relieve yourself. 13 Each of you must have a spade as part of your equipment. Whenever you relieve yourself, dig a hole with the spade and cover the excrement. 14 The camp must be holy, for the Lord your God moves around in your camp to protect you and to defeat your enemies. He must not see any shameful thing among you, or he will 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.