Deuteronomy 23:3-5

Geneva(i) 3 The Ammonites and the Moabites shall not enter into the Congregation of the Lord: euen to their tenth generation shall they not enter into the Congregation of the Lord for euer, 4 Because they met you not with bread and water in the way, when yee came out of Egypt, and because they hyred against thee Balaam the sonne of Beor, of Pethor in Aram-naharaim, to curse thee. 5 Neuerthelesse, the Lord thy God would not hearken vnto Balaam, but the Lord thy God turned the curse to a blessing vnto thee, because the Lord thy God loued thee.