Psalm 106:31-35 Amplified Bible (AMP)

31. And that was credited to him for righteousness (right doing and right standing with God) to all generations forever.

32. They angered the Lord also at the waters of Meribah, so that it went ill with Moses for their sakes; [Num. 20:3-13.]

33. For they provoked [Moses'] spirit, so that he spoke unadvisedly with his lips.

34. They did not destroy the [heathen] nations as the Lord commanded them,

35. But mingled themselves with the [idolatrous] nations and learned their ways and works

Psalm 106