It is remarkable from the first, in the instances of the fathers of both houses, Jacob as the head of Israel, and his brother Esau as the head of Edom, how the LORD drew the line of separation: see Malachi 1:2-4.
Related Commentaries of Deuteronomy 23:7
Deuteronomy 23:7-8
7 Thou shalt not abhor an Edomite; for he is thy brother: thou shalt not abhor an Egyptian; because thou wast a stranger in his land.
8 The children that are begotten of them shall enter into the congregation of the LORD in their third generation.