How Shall the Young Direct Their Way?

How shall the young direct their way?
What light shall be their perfect guide?
Thy Word, O Lord, will safely lead,
If in its wisdom they confide.
Sincerely I have sought Thee, Lord,
O let me not from Thee depart;
To know Thy will and keep from sin
Thy Word I cherish in my heart.

O blessèd Lord, teach me Thy law,
Thy righteous judgments I declare;
Thy testimonies make me glad,
For they are wealth beyond compare.
Upon Thy precepts and Thy ways
My heart will meditate with awe;
Thy Word shall be my chief delight,
And I will not forget Thy law.

Author: Unknown

This is a metrical paraphrase of Psalm 119 (specifically drawing from verses 9-16). Such psalm-based hymns in this style are frequently found in the 1912 Psalter or similar Reformed/Presbyterian collections and are typically listed as anonymous or 'from The Psalter' rather than credited to a specific author.