O Lord, Thy Perfect Righteousness

O Lord, Thy perfect righteousness
Is in Thy judgments shown;
In Thy unchanging faithfulness
Thy truth Thou hast made known.

Because Thy foes forget Thy law
My soul is greatly stirred;
Thy servant loves the purity
Of Thy most holy Word.

Though I am humble and despised,
I strive Thy will to do;
Eternal is Thy righteousness,
And all Thy law is true.

Delight amid distress and pain
Do Thy commandments give;
Thy Word is righteous evermore,
Teach me that I may live.

Author: Unknown

This is a metrical rendering of Psalm 119 (specifically verses from the Tsaddi or Tzaddi section). Such psalm-versions were produced by many authors across centuries (e.g., Sternhold & Hopkins, Tate & Brady, the 1650 Scottish Psalter, or later 19th/20th-century hymnals). No distinctive phrasing points to a single well-known writer such as Watts, Wesley, or Cowper; it appears in modern hymnals and online psalters as an anonymous or traditional text.