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.