Deuteronomy 23:7-8 ESV

7 "You shall not abhor an Edomite, for 1he is your brother. You shall not abhor an Egyptian, because 2you were a sojourner in his land.

References for Deuteronomy 23:7

8 Children born to them in the third generation may enter the assembly of the LORD.