Numbers 25:5-8

25:5 So Moses said to the judges of Israel, “Each of you must execute those of his men who were joined to Baal-peor.”

25:6 Just then one of the Israelites came and brought to his brothers a Midianite woman in the plain view of Moses and of the whole community of the Israelites, while they were weeping at the entrance of the tent of meeting. 25:7 When Phinehas son of Eleazar, the son of Aaron the priest, saw it, he got up from among the assembly, took a javelin in his hand, 25:8 and went after the Israelite man into the tent and thrust through the Israelite man and into the woman’s abdomen. So the plague was stopped from the Israelites.