Contrasting the way of the wicked and the righteous is a very common theme in the Old Testament. Here are a few Psalms where we find this theme.
wicked
Psalm 73: The wicked contrasted with the righteous
Psalm 73 The end of the wicked contrasted with the end of the righteous.