Deuteronomy 23:5-6

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. 23:6 You must not seek peace and prosperity for them through all the ages to come.