The way of the wicked is an abomination to the LORD, but he loves him who pursues righteousness.
Proverbs 15:9 ESV
This is a deliberate parallel with v8. The way of the wicked is to do what he pleases and then think that God can be brought into line by the right combination of words and ritual. The person who pursues righteousness pursues relationship with God, while the wicked looks for ways to manipulate God. The good and the bad of religion.