25While the Israelites were camped at Acacia Grove, some of the men defiled themselves by having sexual relations with local Moabite women.2These women invited them to attend sacrifices to their gods, so the Israelites feasted with them and worshiped the gods of Moab.3In this way, Israel joined in the worship of Baal of Peor, causing the LORD's anger to blaze against his people.4The LORD issued the following command to Moses: "Seize all the ringleaders and execute them before the LORD in broad daylight, so his fierce anger will turn away from the people of Israel."5So Moses ordered Israel's judges, "Each of you must put to death the men under your authority who have joined in worshiping Baal of Peor."6Just then one of the Israelite men brought a Midianite woman into his tent, right before the eyes of Moses and all the people, as everyone was weeping at the entrance of the Tabernacle.7When Phinehas son of Eleazar and grandson of Aaron the priest saw this, he jumped up and left the assembly. He took a spear8and rushed after the man into his tent. Phinehas thrust the spear all the way through the man's body and into the woman's stomach. So the plague against the Israelites was stopped,9but not before 24,000 people had died.10Then the LORD said to Moses,11"Phinehas son of Eleazar and grandson of Aaron the priest has turned my anger away from the Israelites by being as zealous among them as I was. So I stopped destroying all Israel as I had intended to do in my zealous anger.12Now tell him that I am making my special covenant of peace with him.13In this covenant, I give him and his descendants a permanent right to the priesthood, for in his zeal for me, his God, he purified the people of Israel, making them right with me."14The Israelite man killed with the Midianite woman was named Zimri son of Salu, the leader of a family from the tribe of Simeon.15The woman's name was Cozbi; she was the daughter of Zur, the leader of a Midianite clan.16Then the LORD said to Moses,17"Attack the Midianites and destroy them,18because they assaulted you with deceit and tricked you into worshiping Baal of Peor, and because of Cozbi, the daughter of a Midianite leader, who was killed at the time of the plague because of what happened at Peor."