Deuteronomy 23:5-10

5 Nevertheless the LORD your God would not listen to Balaam; but the LORD your God turned the curse into a blessing to you, because the LORD your God loved you.

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

7 You shall not abhor an Edomite; for he is your brother: you shall not abhor an Egyptian; because you were a stranger in his land.

8 The children that are begotten of them shall enter into the congregation of the LORD in their third generation.

9 When the host goes forth against your enemies, then keep you from every wicked thing.

10 If there be among you any man, that is not clean by reason of uncleanness that chances him by night, then shall he go abroad out of the camp, he shall not come within the camp: