3 So Israel yoked himself to Baal of Peor. And the anger of the Lord was kindled against Israel. 4 And the Lord said to Moses, "Take all the chiefs of the people and hang[1] them in the sun before the Lord, that the fierce anger of the Lord may turn away from Israel." 5 And Moses said to the judges of Israel, "Each of you kill those of his men who have yoked themselves to Baal of Peor."

6 And behold, one of the people of Israel came and brought a Midianite woman to his family, in the sight of Moses and in the sight of the whole congregation of the people of Israel, while they were weeping in the entrance of the tent of meeting. 7 When Phinehas the son of Eleazar, son of Aaron the priest, saw it, he rose and left the congregation and took a spear in his hand 8 and went after the man of Israel into the chamber and pierced both of them, the man of Israel and the woman through her belly. Thus the plague on the people of Israel was stopped. 9 Nevertheless, those who died by the plague were twenty-four thousand. 10 And the Lord said to Moses, 11 "Phinehas the son of Eleazar, son of Aaron the priest, has turned back my wrath from the people of Israel, in that he was jealous with my jealousy among them, so that I did not consume the people of Israel in my jealousy. 12 Therefore say, 'Behold, I give to him my covenant of peace, 13 and it shall be to him and to his descendants after him the covenant of a perpetual priesthood, because he was jealous for his God and made atonement for the people of Israel.'" 14 The name of the slain man of Israel, who was killed with the Midianite woman, was Zimri the son of Salu, chief of a father's house belonging to the Simeonites. 15 And the name of the Midianite woman who was killed was Cozbi the daughter of Zur, who was the tribal head of a father's house in Midian.

16 And the Lord spoke to Moses, saying, 17 "Harass the Midianites and strike them down, 18 for they have harassed you with their wiles, with which they beguiled you in the matter of Peor, and in the matter of Cozbi, the daughter of the chief of Midian, their sister, who was killed on the day of the plague on account of Peor."

Matthew Henry's Commentary on Numbers 25:3-18

Commentary on Numbers 25:1-5

(Read Numbers 25:1-5)

The friendship of the wicked is more dangerous than their enmity; for none can prevail against God's people if they are not overcome by their inbred lusts; nor can any enchantment hurt them, but the enticements of worldly interests and pleasures. Here is the sin of Israel, to which they are enticed by the daughters of Moab and Midian. Those are our worst enemies who draw us to sin, for that is the greatest mischief any man can do us. Israel's sin did that which all Balaam's enchantments could not do; it set God against them. Diseases are the fruits of God's anger, and the just punishments of prevailing sins; one infection follows the other. Ringleaders in sin ought to be made examples of justice.

Commentary on Numbers 25:6-15

(Read Numbers 25:6-15)

Phinehas, in the courage of zeal and faith, executed vengeance on Zimri and Cozbi. This act can never be an example for private revenge, or religious persecution, or for irregular public vengeance.

Commentary on Numbers 25:16-18

(Read Numbers 25:16-18)

We read not that any Midianites died of the plague; God punished them with the sword of an enemy, not with the rod of a father. We must set ourselves against whatever is an occasion of sin to us, Matthew 5:29,30. Whatever draws us to sin, should be a vexation to us, as a thorn in the flesh. And none will be more surely and severely punished than those who, after Satan's example, and with his subtlety, tempt others to sin.