“I know that Yahweh maintains the cause of the needy.
He executes justice for the poor.
Surely the righteous shall give thanks to your name.
The upright shall live in your presence.”
This psalm ends on a happy note. Yahweh will give victory to the righteous. David knows that Yahweh helps the needy and brings justice to the poor. The righteous ones will give thanks to his name, while the upright shall live in the presence of Yahweh. Thus we have a happy ending.