251When the Israelites were camped in the Valley of Acacia, the men began to have sexual intercourse with the Moabite women who were there. 2These women invited them to sacrificial feasts, where the god of Moab was worshipped. The Israelites ate the food and worshipped the god 3Baal of Peor. So the LORD was angry with them 4and said to Moses, “Take all the leaders of Israel and, in obedience to me, execute them in broad daylight,25.4 in broad daylight; or publicly. and then I will no longer be angry with the people.” 5Moses said to the officials, “Each of you is to kill every man in your tribe who has become a worshipper of Baal of Peor.”
6One of the Israelites took a Midianite woman into his tent in the sight of Moses and the whole community, while they were mourning at the entrance of the Tent of the LORD's presence. 7When Phinehas, the son of Eleazar and grandson of Aaron the priest, saw this, he got up and left the assembly. He took a spear, 8followed the man and the woman into the tent, and drove the spear through both of them. In this way the epidemic that was destroying Israel was stopped, 9but it had already killed 24,000 people.
10The LORD said to Moses, 11“Because of what Phinehas has done, I am no longer angry with the people of Israel. He refused to tolerate the worship of any god but me, and that is why I did not destroy them in my anger. 12So tell him that I am making a covenant with him that is valid for all time to come. 13He and his descendants are permanently established as priests, because he did not tolerate any rivals to me and brought about forgiveness for the people's sin.”
14The name of the Israelite who was killed with the Midianite woman was Zimri son of Salu, the head of a family in the tribe of Simeon. 15The woman's name was Cozbi. Zur, her father, was chief of a group of Midianite clans.
16The LORD commanded Moses, 17“Attack the Midianites and destroy them, 18because of the evil they did to you when they deceived you at Peor, and because of Cozbi, who was killed at the time of the epidemic at Peor.”