Deuteronomy 23:3-5

Rotherham(i) 3 Neither an Ammonite nor a Moabite shall enter into the convocation of Yahweh,––even to the tenth generation, shall none that belong to them enter into the convocation of Yahweh, unto times age–abiding: 4 because they met you not with bread and water, in the way, when ye came forth out of Egypt,––but hired against thee Balaam son of Beor, from Pethor of Mesopotamia, to curse thee. 5 Nevertheless, Yahweh thy God, consented not, to hearken unto Balaam, but Yahweh thy God turned, for thee, the curse into a blessing,––because Yahweh thy God loved thee.