Num 25:8-9

8he went after the Israelite man into the tent, and pierced the two of them, the Israelite and the woman, through the belly. So the plague was stopped among the people of Israel.9Nevertheless those that died by the plague were twenty-four thousand.