David opens with a declaration: in the Lord he takes refuge. That is why he cannot understand how they tell him to flee like a bird to the mountain. They point out that the wicked bend the bow and fit their arrows to the string to shoot in the dark at the upright in heart. And they end with a question: if the foundations are destroyed, what can the righteous do?
David's answer is in heaven. The Lord is in his holy temple, his throne is in heaven, his eyes see and his eyelids test the children of man. The Lord tests the righteous, but his soul hates the wicked and the one who loves violence.
On the wicked he will rain coals, fire and sulfur, and a scorching wind will be the portion of their cup. The Lord is righteous and loves righteous deeds; the upright will see his face.