Psalm 106:27-34 English Standard Version (ESV)

27. and would make their offspring fall among the nations, scattering them among the lands.

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 righteousnessfrom generation to generation forever.

32. They angered him at the waters of Meribah,and it went ill with Moses on their account,

33. for they made his spirit bitter,and he spoke rashly with his lips.

34. They did not destroy the peoples, as the Lord commanded them,

Psalm 106