Passage
I will give thanks unto thee; for thou hast answered me, And art become my salvation.
I will give thanks unto thee; for thou hast answered me, And art become my salvation.
Psalms 118:19 Open to me the gates of righteousness: I will enter into them, I will give thanks unto Jehovah.
Psalms 118:20 This is the gate of Jehovah; The righteous shall enter into it.
Psalms 118:21 I will give thanks unto thee; for thou hast answered me, And art become my salvation.
Psalms 118:22 The stone which the builders rejected Is become the head of the corner.
Psalms 118:23 This is Jehovah`s doing; It is marvellous in our eyes.
The verse centers on "give", "thanks", "thee", "thou", "hast", "answered", "become", and "salvation". It is saying that the verse draws attention to "give" and "thanks", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "This is the gate of Jehovah The..." into verse 22's "The stone which the builders rejected Is...", so "give" and "thanks" 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 "give" and "thanks" with trust shaped by these words, not by a vague optimism outside the passage.