Deuteronomy 23
The LORD’s assembly
1No man whose testicles are crushed or whose penis is cut off can belong to the LORD’s assembly.2No one born of an illegitimate marriage can belong to the LORD’s assembly either. Not even the tenth generation of such children can belong to the LORD’s assembly.3Ammonites and Moabites can’t belong to the LORD’s assembly. Not even the tenth generation of such people can belong to the LORD’s assembly, as a rule,4because they didn’t help you with food or water on your journey out of Egypt, and because they hired Balaam, Beor’s son, from Pethor of Mesopotamia to curse you.5But the LORD your God wasn’t interested in listening to Balaam. The LORD your God turned that curse into a blessing because the LORD your God loves you.6So don’t be concerned with their health and well-being as long as you live.7Don’t detest Edomites, because they are your relatives. Don’t detest Egyptians because you were immigrants in their land.8Children born to them are permitted to belong to the LORD’s assembly starting with the third generation.
Rules for the war camp
9When you are camped in battle against your enemies, guard yourself from every possible evil.10If an individual in the camp becomes polluted due to a nighttime emission, he must exit the camp area and not reenter.11When the next evening arrives, he must wash with water; and when the sun sets, he can come back to the camp.12The latrines must be outside the camp. You will use them there, outside the camp.13Carry a shovel with the rest of your gear; once you have relieved yourself, use it to dig a hole, then refill it, covering your excrement.
14Do these things because the LORD your God travels with you, right in the middle of your camp, ready to save you and to hand your enemies over to you. For this reason your camp must be holy. The LORD must not see anything indecent among you, or he will turn away from you.