Numbers 23:27

23:27 Balak said to Balaam, “Come, please; I will take you to another place. Perhaps it will please God to let you curse them for me from there.”

Numbers 32:13

32:13 So the Lord’s anger was kindled against the Israelites, and he made them wander in the wilderness for forty years, until all that generation that had done wickedly before the Lord was finished.