Balaam (; , Standard Bīlʿam Tiberian Bīlʿām) is a diviner in the Torah (Pentateuch) whose story begins in Chapter 22 of the Book of Numbers (). Ancient references to Balaam consider him a non-Israelite, a prophet, and the son of Beor. King Balak of Moab offered him money to curse Israel (), but Balaam blessed the Israelites instead, as dictated by God. Nevertheless, he is reviled as a "wicked man" in both the Torah and the New Testament (). According to the Book of Revelation (), Balaam told King Balak how to get the Israelites to commit sin by enticing them to copulate with foreign women and worship idols. The Israelites fell into transgression due to these traps and God unleashed a deadly plague upon them as a result ().

Balaam and Balak

The main story of Balaam occurs during the sojourn of the Israelites in the plains of Moab, east of the Jordan River, at the close of forty years of wandering, shortly before the death of Moses and the crossing of the Jordan. The Israelites have already defeated two kings in Transjordan: Sihon, king of the Amorites, and Og, king of Bashan. Balak, king of Moab, consequently becomes alarmed, and sends elders of Midian and his Moabite messengers, to Balaam, son of Beor, to induce him to come and curse Israel. Balaam's location, Pethor, is simply given as "which is by the river of the land of the children of his people" in the Masoretic Text and the Septuagint, though the Samaritan Pentateuch, Vulgate, and Peshitta all identify his land as Ammon.

Balaam

Balaam sends back word that he can only do what YHWH commands, and God has, via a nocturnal dream, told him not to go. Balak consequently sends higher-ranking priests and offers Balaam honours; Balaam continues to press God, and God finally permits him to go but with instructions to say only what He commands. Balaam then sets out in the morning with the princes of Moab. God becomes angry that he went, implying that he only used Balaam as a tool to further his will, and sends the Angel of the Lord (Numbers 22:22) to prevent him. At first, the angel is seen only by the donkey Balaam is riding, which tries to avoid the angel. After Balaam starts punishing the donkey for refusing to move, it is miraculously given the power to speak to Balaam (Numbers 22:28) and says, "What have I done to you, that you have struck me these three times?" At this point, Balaam is allowed to see the angel, who informs him that the donkey's turning away from the messenger is the only reason the angel did not kill Balaam. Balaam immediately repents, but is told to go on.

Balaam

Balak meets with Balaam at Kirjat Huzoth, and they go to the "high places of Baal", and offer sacrifices on seven altars, leading to Balaam being given a prophecy by Yahweh, which He speaks to Balak. However, the prophecy blesses Israel; Balak remonstrates, but Balaam reminds him that he can only speak the words put in his mouth, so Balak takes him to another "high place" at Pisgah, to try again. Building another seven altars here, and making sacrifices on each, Balaam provides another prophecy blessing Israel.

Balaam

Balaam finally gets taken by a now very frustrated Balak to Peor, and, after the seven sacrifices there, decides not to "seek enchantments" but instead looks upon the Israelites from the peak. The Spirit of God comes upon Balaam and he delivers a third positive prophecy concerning Israel. Balak's anger rises to the point where he threatens Balaam, but Balaam merely offers a prediction of fate. Balaam then looks upon the Kenites, and Amalekites and offers two more predictions of their fates. Balak and Balaam then go to their respective homes.

Later, Numbers 25:1–9 describes how Israel engaged in the Heresy of Peor. Numbers 31:16 blames this on Balaam's advice and because of his culpability in the incident, which resulted in deadly divine judgements against the Israelites who participated, he was eventually killed in a retaliatory battle against Midian in Numbers 31:8.

Deuteronomy 23:3–6 summarises these incidents, and further states that the Ammonites were associated with the Moabites. Joshua, in his farewell speech, also makes reference to it. With God's protection taken from him, Balaam is later listed among the Midianites who were killed in revenge for the "matter of Peor". Joshua 13:22 records that Balaam died "by the sword" during a battle for the Reubenite occupation of Moabite land.

Revelation also states that Balaam "taught Balak to cast a stumbling block before the children of Israel."

The story of Balaam and Balak is also made reference to in chapter 10 of 2 Meqabyan, a book considered canonical in the Ethiopian Orthodox Tewahedo Church.