Passage
I thank Thee, for Thou hast answered me, And art to me for salvation.
I thank Thee, for Thou hast answered me, And art to me for salvation.
Psalms 118:19 Open ye to me gates of righteousness, I enter into them--I thank Jah.
Psalms 118:20 This <FI>is<Fi> the gate to Jehovah, The righteous enter into it.
Psalms 118:21 I thank Thee, for Thou hast answered me, And art to me for salvation.
Psalms 118:22 A stone the builders refused Hath become head of a corner.
Psalms 118:23 From Jehovah hath this been, It <FI>is<Fi> wonderful in our eyes,
The verse centers on "thank", "thee", "thou", "hast", "answered", and "salvation". It is saying that the verse draws attention to "thank" and "thee", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "This FI is Fi the gate to..." into verse 22's "A stone the builders refused Hath become...", so "thank" and "thee" 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 "thank" and "thee" with trust shaped by these words, not by a vague optimism outside the passage.