Numbers 25:8-11 New American Standard Bible (NASB)

8. and he went after the man of Israel into the tent and pierced both of them through, the man of Israel and the woman, through the body. So the plague on the sons of Israel was checked.

9. Those who died by the plague were 24,000.

10. Then the Lord spoke to Moses, saying,

11. "Phinehas the son of Eleazar, the son of Aaron the priest, has turned away My wrath from the sons of Israel in that he was jealous with My jealousy among them, so that I did not destroy the sons of Israel in My jealousy.

Numbers 25