Passage
But the salvation of the righteous is of Jehovah: he is their strength in the time of trouble.
But the salvation of the righteous is of Jehovah: he is their strength in the time of trouble.
Psalms 37:37 Mark the perfect, and behold the upright, for the end of [that] man is peace;
Psalms 37:38 but the transgressors shall be destroyed together; the future of the wicked shall be cut off.
Psalms 37:39 But the salvation of the righteous is of Jehovah: he is their strength in the time of trouble.
Psalms 37:40 And Jehovah will help them and deliver them: he will deliver them from the wicked, and save them; for they trust in him.
The verse centers on "salvation", "righteous", "jehovah", "strength", "time", and "trouble". It is saying that the verse draws attention to "salvation" and "righteous", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 38's "but the transgressors shall be destroyed together..." into verse 40's "And Jehovah will help them and deliver...", so "salvation" and "righteous" 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 "salvation" and "righteous" with trust shaped by these words, not by a vague optimism outside the passage.