Be merciful unto me, O God, be merciful unto me: for my soul trusteth in Thee: yea, in the shadow of Thy wings will I make my refuge, until these calamities be overpast.@Psalm 57:1

Anne Steele, Poems on Subjects Chiefly Devotional 1760, pages 143-44, alt. God the only refuge of the troubled mind.

St. Columba ancient Irish melody (🔊 pdf nwc).

Dear refuge of my weary soul,
On Thee, when sorrows rise;
On Thee, when waves of trouble roll,
My fainting hope relies.

While hope revives, though pressed with fear
And I can say, My God,
Beneath Thy feet I spread my cares,
And pour my woes abroad.

To Thee I tell each rising grief,
For Thou alone canst heal;
Thy Word can bring a sweet relief
For every pain I feel.

But oh! when gloomy doubts prevail,
I fear to call Thee mine;
The springs of comfort seem to fail,
And all my hopes decline.

Yet, gracious God, where shall I flee?
Thou art my only trust,
And still my soul would cleave to Thee,
Though prostrate in the dust.

Hast Thou not bid me seek Thy face?
And shall I seek in vain?
And can the ear of sovereign grace
Be deaf when I complain?

No, still the ear of sovereign grace
Attends the mourner’s prayer;
O access may I ever find,
To breathe my sorrows there.

Thy mercy seat is open still;
Here let my soul retreat,
With humble hope attend Thy will,
And wait beneath Thy feet.