Deuteronomy 23:4-5

Rotherham(i) 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.