Deuteronomy 23:5 American Standard Version (ASV)

Nevertheless Jehovah thy God would not hearken unto Balaam; but Jehovah thy God turned the curse into a blessing unto thee, because Jehovah thy God loved thee.

Deuteronomy 23

Deuteronomy 23:1-8