The story of Balaam, referred to by Peter (2Peter 2:15-16), is one of the strange yet true stories of the Bible. It is found in Numbers 22,23,24.
While the Israelite multitude was camped in Moab listening to Moses, the Moabites and Midianites were receiving oracles from God through Balaam —one of those many prophets whom God had dispersed throughout the world since the dawn of history.
Balaam was of Mesopotamian extraction (Deuteronomy 23:4). He was therefore a foreigner among the Ammonites and Moabites (the name Balaam apparently means foreigner). He was considered by them to be a diviner or soothsayer of considerable power.
The intrusion of the Israelites alarmed Balak, king of Moab. He called upon the services of Balaam, who had a reputation for powerful divining. Balak wanted Balaam to put a curse upon the Israelites so as to stop their progress.
Balaam refused to make any pronouncement other than what God says. Even though the king pressed Balaam for another message, Balaam would give him none but God’s. The king wanted a curse upon the Israelites, but Balaam gave them a blessing.
Over and over the leaders of Moab asked Balaam to have another go at divining the message they wanted. Each time the Lord gave Balaam a stronger version of the truth, and told him to pronounce a blessing instead of a curse.
Balaam repeated the blessing faithfully, defying the king. His attitude was, "I must be careful to speak what the Lord puts in my mouth." (Numbers 23:12).
Although Balaam was right to speak only what God told him to speak, Balaam gets very bad press repeatedly in the Bible...
An unfaithful prophet. Balaam, by the powers granted him by God, had the opportunity to demonstrate the power of the true God against the deception of false gods and idols.
When Balaam pronounced a blessing or a curse, it worked. Balak said as much when he summoned Balaam to curse the Israelites (Numbers 22:6).
Balaam could have helped the Moabites and their neighbours to "turn to God from idols, to serve the living God" (1Thessalonians 1:9). However Balaam let God down badly.
A false prophet. Balaam was too easily led away from God’s truth into error, and he in turn led many others astray (Numbers 31:8,16, Revelation 2:14).
Instead of giving the counsel of God, he taught people to practise idolatry and to commit fornication (Revelation 2:14) It was his counsel that caused the children of Israel to sin and to suffer a terrible plague (Numbers 25:1-9, Numbers 31:14-16).
Loved money more than truth. For all Balaam's talk about speaking only what God put into his mouth, he was wishing to curse the children of Israel for the generous fee Balak would pay him. Instead of loving righteousness, Balaam "loved the wages of unrighteousness" (2Peter 2:15-16).
Balaam knew what pleased the Lord, but what pleased the Lord did not please Balaam.
Presumed to manipulate God. Sure, Balaam uttered a blessing instead of a curse, but only because God gave him no option. What would be the point in Balaam pronouncing a curse, if God was going to give a blessing?
Balaam would look stupid and damage his reputation. However Balaam kept going along with Balak's repeated attempts to get a curse from God upon the Israelites, because like Balak he hoped that maybe somehow God could be pressured into doing a backflip.
God, however, refused to listen, and he was angry with Balaam for not rejecting Balak's proposal outright from the very first (Numbers 22:12).