4 The Ammonites and Moabites didn't come to meet you with food and water on your way out of Egypt. They even hired Balaam from Pethor in Aram Naharaim to call down a curse on you. Balaam was the son of Beor.
5 The Lord your God wouldn't listen to Balaam. Instead, he turned the curse into a blessing for you. He did it because he loves you.
6 So don't make a peace treaty with the Ammonites and Moabites as long as you live.
7 Don't hate the people of Edom. They are your relatives. Don't hate the people of Egypt. After all, you lived as outsiders in their country.
8 The great-grandchildren of the Edomites and Egyptians can join in worship with the Lord's people.
9 There will be times when you are at war with your enemies. And your soldiers will be in camp. Then keep away from anything that isn't pure and clean.
10 Suppose semen flows from the body of one of your soldiers during the night. Then that will make him "unclean." He must go outside the camp and stay there.