It has been set as a hymn to the tune PASSION CHORALE by Hans Leo Hassler (1601) - although this tune is more commonly used for a different hymn "O sacred head now wounded".
LyricsO sacred heart of Jesus, I place my trust in thee,
Whatever may befall me, Lord, though dark the hour may be;
In all my woes, in all my joys, though nought but grief I see,
O sacred heart of Jesus, I place my trust in thee.
When those I love have passed away and I am sore distressed,
O sacred heart of Jesus, I fly to thee for rest.
And when the cross is heavy, my confidence shall be
Unshaken as I cry, dear Lord, "I place my trust in thee."
This is my one sweet prayer, dear Lord, my faith, my trust, my love,
But most of all in that last hour, when death points up above,
O sweet saviour, may thy face smile on my soul all free.
Oh may I cry with rapturous love, "I've placed my trust in thee."