So Balaam arose in the morning and said to Balak’s leaders, “Go back to your land, for Yahweh has refused to allow me to go with you.”
And God said to Balaam, “Do not go with them; you shall not curse the people, for they are blessed.”
And the leaders of Moab arose and came to Balak and said, “Balaam refused to go with us.”
Nevertheless, Yahweh your God was not willing to listen to Balaam, but Yahweh your God turned the curse into a blessing for you because Yahweh your God loves you.