Passage
I am a stranger in the land; hide not thy commandments from me.
I am a stranger in the land; hide not thy commandments from me.
Psalms 119:17 GIMEL. Deal bountifully with thy servant [and] I shall live; and I will keep thy word.
Psalms 119:18 Open mine eyes, and I shall behold wondrous things out of thy law.
Psalms 119:19 I am a stranger in the land; hide not thy commandments from me.
Psalms 119:20 My soul breaketh for longing after thy judgments at all times.
Psalms 119:21 Thou hast rebuked the proud [that are] cursed, who wander from thy commandments.
The verse centers on "stranger", "land", "hide", and "commandments". It is saying that the verse draws attention to "stranger" and "land", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 18's "Open mine eyes and I shall behold..." into verse 20's "My soul breaketh for longing after thy...", so "stranger" and "land" 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 "stranger" and "land" with trust shaped by these words, not by a vague optimism outside the passage.