Deuteronomy 11:29

11:29 When the Lord your God brings you into the land you are to possess, you must pronounce the blessing on Mount Gerizim and the curse on Mount Ebal.

Deuteronomy 23:5

23:5 But the Lord your God refused to listen to Balaam and changed the curse to a blessing, for the Lord your God loves you.