Read this passage and open each verse for the full verse feed and commentary tools.
9"When you go forth against your enemies and are in camp, then you shall keep yourself from every evil thing. 10"If there is among you any man who is not clean by reason of what chances to him by night, then he shall go outside the camp, he shall not come within the camp; 11but when evening comes on, he shall bathe himself in water, and when the sun is down, he may come within the camp. 12"You shall have a place outside the camp and you shall go out to it; 13and you shall have a stick with your weapons; and when you sit down outside, you shall dig a hole with it, and turn back and cover up your excrement. 14Because the LORD your God walks in the midst of your camp, to save you and to give up your enemies before you, therefore your camp must be holy, that he may not see anything indecent among you, and turn away from you.
Deuteronomy 23:9-14 (RSV)