Deuteronomy 23:7-8 CJB

7 "But you are not to detest an Edomi, because he is your brother; and you are not to detest an Egyptian, because you lived as a foreigner in his land.
8 The third generation of children born to them may enter the assembly of ADONAI.