Deuteronomy 23:9-14 - Cleanliness Of The Camp
9 “When you are encamped against your enemies, be careful to avoid anything offensive. 10 If there is a man among you who is unclean because of a bodily emission during the night, he must go outside the camp; he may not come anywhere inside the camp. 11 When evening approaches, he must wash with water, and when the sun sets he may come inside the camp.