David begins by singing of steadfast love and justice, declaring that he will sing to the Lord. In verse 2 he resolves to pay attention to the way that is blameless and asks when the Lord will come to him; he promises to walk with integrity of heart within his house.
Then he lists what he will reject. He will set no worthless thing before his eyes, he hates the work of those who fall away and it will not cling to him. A perverse heart will be far from him and he will know nothing of evil. Whoever secretly slanders his neighbor he will destroy, and he will not endure a haughty look and an arrogant heart.
By contrast, his eyes will be on the faithful in the land so that they may dwell with him, and whoever walks in the way that is blameless will minister to him. No one who practices deceit will dwell in his house, and no one who utters lies will continue in his presence. Morning by morning he will destroy all the wicked in the land, cutting off all evildoers from the city of the Lord.