24 Now when Balaam saw that it pleased the Lord to bless Israel, he did not resort to divination as at other times, but turned his face toward the wilderness. When Balaam looked out and saw Israel encamped tribe by tribe, the Spirit of God came on him and he spoke his message:

“The prophecy of Balaam son of Beor,
    the prophecy of one whose eye sees clearly,
the prophecy of one who hears the words of God,
    who sees a vision from the Almighty,[a]
    who falls prostrate, and whose eyes are opened:

“How beautiful are your tents, Jacob,
    your dwelling places, Israel!

“Like valleys they spread out,
    like gardens beside a river,
like aloes planted by the Lord,
    like cedars beside the waters.
Water will flow from their buckets;
    their seed will have abundant water.

“Their king will be greater than Agag;
    their kingdom will be exalted.

“God brought them out of Egypt;
    they have the strength of a wild ox.
They devour hostile nations
    and break their bones in pieces;
    with their arrows they pierce them.
Like a lion they crouch and lie down,
    like a lioness—who dares to rouse them?

“May those who bless you be blessed
    and those who curse you be cursed!”

10 Then Balak’s anger burned against Balaam. He struck his hands together and said to him, “I summoned you to curse my enemies, but you have blessed them these three times. 11 Now leave at once and go home! I said I would reward you handsomely, but the Lord has kept you from being rewarded.”

12 Balaam answered Balak, “Did I not tell the messengers you sent me, 13 ‘Even if Balak gave me all the silver and gold in his palace, I could not do anything of my own accord, good or bad, to go beyond the command of the Lord—and I must say only what the Lord says’? 14 Now I am going back to my people, but come, let me warn you of what this people will do to your people in days to come.”

Balaam’s Fourth Message

15 Then he spoke his message:

“The prophecy of Balaam son of Beor,
    the prophecy of one whose eye sees clearly,
16 the prophecy of one who hears the words of God,
    who has knowledge from the Most High,
who sees a vision from the Almighty,
    who falls prostrate, and whose eyes are opened:

17 “I see him, but not now;
    I behold him, but not near.
A star will come out of Jacob;
    a scepter will rise out of Israel.
He will crush the foreheads of Moab,
    the skulls[b] of[c] all the people of Sheth.[d]
18 Edom will be conquered;
    Seir, his enemy, will be conquered,
    but Israel will grow strong.
19 A ruler will come out of Jacob
    and destroy the survivors of the city.”

Balaam’s Fifth Message

20 Then Balaam saw Amalek and spoke his message:

“Amalek was first among the nations,
    but their end will be utter destruction.”

Balaam’s Sixth Message

21 Then he saw the Kenites and spoke his message:

“Your dwelling place is secure,
    your nest is set in a rock;
22 yet you Kenites will be destroyed
    when Ashur takes you captive.”

Balaam’s Seventh Message

23 Then he spoke his message:

“Alas! Who can live when God does this?[e]
24     Ships will come from the shores of Cyprus;
they will subdue Ashur and Eber,
    but they too will come to ruin.”

25 Then Balaam got up and returned home, and Balak went his own way.

Moab Seduces Israel

25 While Israel was staying in Shittim, the men began to indulge in sexual immorality with Moabite women, who invited them to the sacrifices to their gods. The people ate the sacrificial meal and bowed down before these gods. So Israel yoked themselves to the Baal of Peor. And the Lord’s anger burned against them.

The Lord said to Moses, “Take all the leaders of these people, kill them and expose them in broad daylight before the Lord, so that the Lord’s fierce anger may turn away from Israel.”

So Moses said to Israel’s judges, “Each of you must put to death those of your people who have yoked themselves to the Baal of Peor.”

Then an Israelite man brought into the camp a Midianite woman right before the eyes of Moses and the whole assembly of Israel while they were weeping at the entrance to the tent of meeting. When Phinehas son of Eleazar, the son of Aaron, the priest, saw this, he left the assembly, took a spear in his hand and followed the Israelite into the tent. He drove the spear into both of them, right through the Israelite man and into the woman’s stomach. Then the plague against the Israelites was stopped; but those who died in the plague numbered 24,000.

10 The Lord said to Moses, 11 “Phinehas son of Eleazar, the son of Aaron, the priest, has turned my anger away from the Israelites. Since he was as zealous for my honor among them as I am, I did not put an end to them in my zeal. 12 Therefore tell him I am making my covenant of peace with him. 13 He and his descendants will have a covenant of a lasting priesthood, because he was zealous for the honor of his God and made atonement for the Israelites.”

14 The name of the Israelite who was killed with the Midianite woman was Zimri son of Salu, the leader of a Simeonite family. 15 And the name of the Midianite woman who was put to death was Kozbi daughter of Zur, a tribal chief of a Midianite family.

16 The Lord said to Moses, 17 “Treat the Midianites as enemies and kill them. 18 They treated you as enemies when they deceived you in the Peor incident involving their sister Kozbi, the daughter of a Midianite leader, the woman who was killed when the plague came as a result of that incident.”