Micah 6:5
4 In fact, I brought you up from the land of Egypt; I delivered you from that place of slavery. I sent Moses, Aaron, and Miriam to lead you. 5 My people, recall how King Balak of Moab planned to harm you, how Balaam son of Beor responded to him. Recall how you journeyed from Shittim to Gilgal, in order to know the just acts of the Lord.8” 6 With what should I enter the Lord’s presence? With what should I bow before the sovereign God? Should I enter his presence with burnt offerings, with year-old calves?
2 Peter 2:15
14 Their eyes, full of adultery, never stop sinning; they entice unstable people. They have trained their hearts for greed, these cursed children! 15 By forsaking the right path they have gone astray, because they followed the way of Balaam son of Bosor, who loved the wages of unrighteousness, 16 yet was rebuked for his own transgression (a dumb donkey, speaking with a human voice, restrained the prophet’s madness).
Notes and References
"... Balaam is mentioned in a number of biblical passages, where he is mostly viewed negatively. Within the Old Testament, only Micah does not present him in a disapproving light (Micah 6:3-5). In the portrayal in Joshua, Balaam petitions Yahweh to curse Israel but God refuses to grant his request (Joshua 24:9-10). In Deuteronomy Balaam utters a curse against Israel, but Yahweh turns it into a blessing (Deuteronomy 23:4-7; so also Nehemiah 13:2). Moving beyond the Balak story, Numbers 31:16 has Balaam counsel Israel to turn against Yahweh in the incident at Baal Peor (Numbers 25:1-16). New Testament references to Balaam are even more negative. Second Peter portrays him as one "who loved gain from wrongdoing" (2 Peter 2:15-16; compare Jude 11). In the book of Revelation, the Balaam stories in Numbers 22-24 and the Baal Peor incident in Numbers 25 are combined in such a way that it is Balaam who induces Balak to harm Israel by enticing them to partake of pagan practices (Revelation 2:14) ..."
Barré, Michael L. The Portrait of Balaam in Numbers 22-24 (pp. 254-266) Interpretation, Vol. 51, No. 3, 1997