Passage
Oh that my ways were established To observe thy statutes!
Oh that my ways were established To observe thy statutes!
Psalms 119:3 Yea, they do no unrighteousness; They walk in his ways.
Psalms 119:4 Thou hast commanded [us] thy precepts, That we should observe them diligently.
Psalms 119:5 Oh that my ways were established To observe thy statutes!
Psalms 119:6 Then shall I not be put to shame, When I have respect unto all thy commandments.
Psalms 119:7 I will give thanks unto thee with uprightness of heart, When I learn thy righteous judgments.
The verse centers on "ways", "established", "observe", and "statutes". It is saying that the verse draws attention to "ways" and "established", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 4's "Thou hast commanded us thy precepts That..." into verse 6's "Then shall I not be put to...", so "ways" and "established" 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 "ways" and "established" with trust shaped by these words, not by a vague optimism outside the passage.