Deuteronomy 23:5-7 Evangelical Heritage Version (EHV)
5 But the Lord your God was not willing to listen to Balaam, and the Lord your God turned the curse into a blessing for you, because the Lord your God loved you. 6 Do not seek their peace and prosperity as long as you live.
7 Do not detest an Edomite, because he is your brother. Do not detest an Egyptian, because you were an alien in his land.