Deuteronomy 23:7-8 NLT

7 "Do not detest the Edomites or the Egyptians, because the Edomites are your relatives, and you lived as foreigners among the Egyptians.
8 The third generation of Egyptians who came with you from Egypt may enter the assembly of the LORD."