Numbers 25:7-12

MLV(i) 7 And when Phinehas, the son of Eleazar, the son of Aaron the priest, saw it, he rose up from the midst of the congregation and took a spear in his hand. 8 And he went after the man of Israel into the tent and thrust both of them through, the man of Israel and the woman through her body. So the plague was stayed from the sons of Israel. 9 And those who died by the plague were twenty-four thousand.
10 And Jehovah spoke to Moses, saying, 11 Phinehas, the son of Eleazar, the son of Aaron the priest, has turned my wrath away from the sons of Israel, in that he was jealous with my jealousy among them, so that I did not consume the sons of Israel in my jealousy.
12 Therefore say, Behold, I give to him my covenant of peace.