Deuteronomy 23:4-5

ACV(i) 4 because they met you not with bread and with water on 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 LORD thy God would not hearken to Balaam, but LORD thy God turned the curse into a blessing to thee, because LORD thy God loved thee.