Deuteronomy 23:3-6 Revised Version 1885 (RV1885)

3. An Ammonite or a Moabite shall not enter into the assembly of the Lord; even to the tenth generation shall none belonging to them enter into the assembly of the Lord for ever:

4. because they met you not with bread and with water in the way, when ye came forth out of Egypt; and because they hired against thee Balaam the son of Beor from Pethor of Mesopotamia, to curse thee.

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.

Deuteronomy 23