Psalms 106:29-31
29
they provoked the Lord to anger by their wicked deeds,
and a plague broke out among them.
30
But Phinehas stood up and intervened,
and the plague was checked.
31
This was credited to him as righteousness
for endless generations to come.