Passage
the law of his God is in his heart; his goings shall not slide.
the law of his God is in his heart; his goings shall not slide.
Psalms 37:29 The righteous shall possess the land, and dwell therein for ever.
Psalms 37:30 The mouth of the righteous proffereth wisdom, and his tongue speaketh judgment;
Psalms 37:31 the law of his God is in his heart; his goings shall not slide.
Psalms 37:32 The wicked watcheth the righteous, and seeketh to slay him:
Psalms 37:33 Jehovah will not leave him in his hand, nor condemn him when he is judged.
The verse centers on "heart", "goings", "shall", and "slide". It is saying that the verse draws attention to "heart" and "goings", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 30's "The mouth of the righteous proffereth wisdom..." into verse 32's "The wicked watcheth the righteous and seeketh...", so "heart" and "goings" 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 "heart" and "goings" with trust shaped by these words, not by a vague optimism outside the passage.