Deuteronomy 23:5

NLT
New Living Translation

5But the Lord your God refused to listen to Balaam. He turned the intended curse into a blessing because the Lord your God loves you.