Numbers 25:7-8

7 aWhen Phinehas bthe son of Eleazar, son of Aaron the priest, saw it, he rose and left the congregation and took a spear in his hand 8and went after the man of Israel into the chamber and pierced both of them, the man of Israel and the woman through her belly. Thus the plague on the people of Israel was stopped.
Copyright information for ESV