Numbers 25:7-15 English Standard Version (ESV)
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.
The Zeal of Phinehas
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.
Numbers 25:7-15 New International Version (NIV)
7 When Phinehas son of Eleazar, the son of Aaron, the priest, saw this, he left the assembly, took a spear in his hand 8 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; 9 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.