Leviticus 22:4
4 None of the offspring of Aaron who has a leprous disease or a ddischarge may eat of the holy things euntil he is clean. fWhoever touches anything that is unclean through contact with the dead or ga man who has had an emission of semen,
Deuteronomy 23:10
10 “If any man among you becomes sunclean because of a nocturnal emission, then he shall go outside the camp. He shall not come inside the camp,