Passage
I am a sojourner in the earth; Do not hide Your commandments from me.
I am a sojourner in the earth; Do not hide Your commandments from me.
Psalms 119:17 Deal bountifully with Your slave, That I may live and keep Your word.
Psalms 119:18 Open my eyes, that I may behold Wonderful things from Your law.
Psalms 119:19 I am a sojourner in the earth; Do not hide Your commandments from me.
Psalms 119:20 My soul is crushed with longing For Your judgments at all times.
Psalms 119:21 You rebuke the arrogant, the cursed, Who stray from Your commandments.
The verse centers on "sojourner", "earth", "hide", and "commandments". It is saying that the verse draws attention to "sojourner" and "earth", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 18's "Open my eyes that I may behold..." into verse 20's "My soul is crushed with longing For...", so "sojourner" and "earth" belong inside that flow. 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 "sojourner" and "earth" with trust shaped by these words, not by a vague optimism outside the passage.