Deuteronomy 23:7-8 NRS

7 You shall not abhor any of the Edomites, for they are your kin. You shall not abhor any of the Egyptians, because you were an alien residing in their land.
8 The children of the third generation that are born to them may be admitted to the assembly of the Lord.