Deuteronomy 23:10

23:10 If there is someone among you who is impure because of some nocturnal emission, he must leave the camp; he may not reenter it immediately.

Deuteronomy 23:12

23:12 You are to have a place outside the camp to serve as a latrine.