This is an hymn by Isaac Watts, his Hymn 109 of Book 1, published 1709.
Settings by composers
Text and translations
The value of Christ, and his righteousness by Isaac Watts, 1709, based on Philippians 3:7-9
No more, my God, I boast no more
Of all the duties I have done;
I quit the hopes I held before,
To trust the merits of Thy Son.
Now, for the love I bear His name,
What was my gain I count my loss;
My former pride I call my shame,
And nail my glory to His cross.
Yes, and I must and will esteem
All things but loss for Jesus' sake:
O may my soul be found in Him,
And of His righteousness partake!
The best obedience of my hands
Dares not appear before Thy throne;
But faith can answer Thy demands
By pleading what my Lord has done.
add links here