Psalms 106:29-31

NHEB(i) 29 Thus they provoked him to anger with their deeds. The plague broke in on them. 30 Then Phinehas stood up, and executed judgment, so the plague was stopped. 31 That was credited to him for righteousness, for all generations to come.