For they did not come to meet you with bread and water on your way when you came out of Egypt, and they hired Balaam son of Beor from Pethor in Aram Naharaim to pronounce a curse on you.
However, the LORD your God would not listen to Balaam but turned the curse into a blessing for you, because the LORD your God loves you.
Do not seek a treaty of friendship with them as long as you live.
Do not despise an Edomite, for the Edomites are related to you. Do not despise an Egyptian, because you resided as foreigners in their country.
The third generation of children born to them may enter the assembly of the LORD.
When you are encamped against your enemies, keep away from everything impure.
If one of your men is unclean because of a nocturnal emission, he is to go outside the camp and stay there.
But as evening approaches he is to wash himself, and at sunset he may return to the camp.
Designate a place outside the camp where you can go to relieve yourself.
As part of your equipment have something to dig with, and when you relieve yourself, dig a hole and cover up your excrement.
For the LORD your God moves about in your camp to protect you and to deliver your enemies to you. Your camp must be holy, so that he will not see among you anything indecent and turn away from you.