O My people, remember now what Balak king of Moab counseled, and what Balaam son of Beor answered him, and remember what happened from Shittim to Gilgal, so that you might know the righteous acts of the Lord.”
because they refused you bread and water on the way, when you came from out of Egypt and because they hired Balaam, the son of Beor of Pethor of Mesopotamia, against you to curse you.
Nevertheless, the Lord your God would not listen to Balaam. Instead the Lord your God turned the curse into a blessing on you because the Lord your God loves you.