Deuteronomy 23:7-8 NIV

7 Do not abhor an Edomite,1 for he is your brother.2 Do not abhor an Egyptian, because you lived as an alien in his country.3

References for Deuteronomy 23:7

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