Deuteronomy 23:6 KJV
Thou shalt not seek their peace nor their prosperity all thy days for ever.
Deuteronomy 23:6, King James Version
In context
5 Nevertheless the Lord thy God would not hearken unto Balaam; but the Lord thy God turned the curse into a blessing unto thee, because the Lord thy God loved thee.
6 Thou shalt not seek their peace nor their prosperity all thy days for ever.
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.