The Ammonites and Moabites had not welcomed the Israelites with food and water. Instead, they had hired Balaam to put a curse on Israel. (But our God turned the curse into a blessing.)
Then Balak was angry with Balaam, and he pounded his fist. He said to Balaam, “I called you here to curse my enemies, but you have continued to bless them three times.