Deuteronomy 23:3-6

Leeser(i) 3 (23:4) An ‘Ammonite and a Moabite shall not enter into the congregation of the Lord; even the tenth generation of him shall not enter into the congregation of the Lord, for ever; 4 (23:5) For the reason, that they met you not with bread and with water on the way, when ye came forth out of Egypt; and because he hired against thee Bil’am the son of Beor of Pethor in Mesopotamia, to curse thee; 5 (23:6) But the Lord thy God would not hearken unto Bil’am; and the Lord thy God changed unto thee the curse into a blessing, because the Lord thy God loved thee. 6 (23:7) Thou shalt not seek their peace and their welfare all thy days, for ever.