Deut 23:7-8

7You 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.8The children of the third generation that are born to them may be admitted to the assembly of the Lord.