Passage
But as for the just, they shall give glory to thy name: and the upright shall dwell with thy countenance.
But as for the just, they shall give glory to thy name: and the upright shall dwell with thy countenance.
Psalms 139:12 A man full of tongue shall not be established in the earth: evil shall catch the unjust man unto destruction.
Psalms 139:13 I know that the Lord will do justice to the needy, and will revenge the poor.
Psalms 139:14 But as for the just, they shall give glory to thy name: and the upright shall dwell with thy countenance.
The verse centers on "just", "shall", "give", "glory", "name", "upright", and "dwell". It is saying that the verse draws attention to "just" and "shall", so its meaning should be read from those terms before moving to application.
The prior verse says "I know that the Lord will do...", giving immediate footing for "just" and "shall". In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "just" and "shall" with trust shaped by these words, not by a vague optimism outside the passage.