Psalm 106:28-31 English Standard Version
28 Then they yoked themselves to the Baal of Peor,
and ate sacrifices offered to the dead;
29 they provoked the Lord to anger with their deeds,
and a plague broke out among them.
30 Then Phinehas stood up and intervened,
and the plague was stayed.
31 And that was counted to him as righteousness
from generation to generation forever.