Laws of Sanitation

9 When you are camped out, at war with your enemies, be careful to keep yourself from anything ritually defiling. 10 If one of your men has become ritually unclean because of a nocturnal emission, he must go outside the camp and stay there 11 until evening when he can wash himself, returning to the camp at sunset. 12 Mark out an area outside the camp where you can go to relieve yourselves. 13 Along with your weapons have a stick with you. After you relieve yourself, dig a hole with the stick and cover your excrement. 14 God, your God, strolls through your camp; he's present to deliver you and give you victory over your enemies. Keep your camp holy; don't permit anything indecent or offensive in God's eyes

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.