Deuteronomy 23:5-10 New King James Version (NKJV)

5. Nevertheless the Lord your God would not listen to Balaam, but the Lord your God turned the curse into a blessing for you, because the Lord your God loves you.

6. You shall not seek their peace nor their prosperity all your days forever.

7. “You shall not abhor an Edomite, for he is your brother. You shall not abhor an Egyptian, because you were an alien in his land.

8. The children of the third generation born to them may enter the assembly of the Lord.

9. “When the army goes out against your enemies, then keep yourself from every wicked thing.

10. If there is any man among you who becomes unclean by some occurrence in the night, then he shall go outside the camp; he shall not come inside the camp.

Deuteronomy 23