Deuteronomy 23:9-14 - Cleanliness Of The Camp
9 When thou goest forth into camp against thine enemies, then shalt thou beware of everything foul. 10 When there is in thy midst a man who is not clean through a mischance of the night, then shall he go forth unto the outside of the camp, he shall not come into the midst of the camp; 11 but it shall be, when the evening cometh on, he shall bathe himself in water, - and at the going in of the sun, he shall come into the midst of the camp. 12 And a place aside, shalt thou have, without the camp, - whither thou canst go forth abroad; 13 and a blade, shalt thou have upon thy staff, - so shall it be, that when thou wouldest sit down outside, thou shalt dig therewith, and shalt turn back and cover that which hath passed from thee: 14 for, Yahweh thy God, walketh to and fro in the midst of thy camp, to rescue thee, and to deliver up thine enemies before thee, so shall thy camps be holy, - and he shall see in thee no shameful thing, that he should turn away from following thee.