Deuteronomy 23:7-8 CSB

7 Do not despise an Edomite, because he is your brother. Do not despise an Egyptian, because you were a foreign resident in his land.
8 The children born to them in the third generation may enter the Lord's assembly.