Psalm 140:13 in the King James Version
Surely the righteous shall give thanks unto thy name: the upright shall dwell in thy presence.
Context
12 I know that the LORD will maintain the cause of the afflicted, and justice for the needy.
13 Surely the righteous will give thanks to your name. The upright will dwell in your presence.