In dich hab ich gehoffet, Herr
"" ("In Thee, Lord, have I put my trust", literally: "In thee have I hoped, Lord") is a Lutheran hymn in seven stanzas, written by Adam Reusner and first published in 1533. He paraphrased the beginning of Psalm 31. It was first sung to the melody of a Passion hymn. The melody connected with the hymn in 1560 was derived from models dating back to the 14th century. A third melody from 1608 became a hymn tune for several other songs and translations to English. In the German Protestant hymnal , the hymn appears as EG  257 with the second melody. Johann Sebastian Bach used the second and third melodies in chorale preludes, and the third also in cantatas and the "St Matthew Passion". English versions include a translation by Catherine Winkworth, "In Thee, Lord, have I put my trust". History. Adam Reusner, who had studied in Wittenberg, wrote "" as a paraphrase of the first six verses of Psalm 31 following the tradition of Martin Luther's psalm songs ("Psalmlieder"). Like Luther, and unlike Reformed theologians such as Ambrosius Lobwasser and later who followed the tradition of the Genevan Psalter, Reusner expanded the psalm verses. He  developed a stanza of six lines for each of the first six verses of the psalm, and added a seventh stanza with a doxology. The hymn first appeared in Augsburg in 1533, designated to be sung to the melody of the Passion hymn "Da Jesus an dem Kreuze stund". The hymn was translated into English in several versions, including Catherine Winkworth's "In Thee, Lord, have I put my trust", which has appeared in more than ten hymnals. "" is part of the current German Protestant hymnal under number EG 257. Form and text. Reusner formed stanzas of six lines for  each of the first six verses of the psalm, and added a seventh stanza with a doxology. The six lines of each stanza rhyme AABCCB, with the fourth and fifth lines shorter at only four syllables. The hymn follows the psalm as a confession of trust and hope in God, who is compared to a fortress, rock and shield when confronted with distress and enemies. In the liturgical tradition, every psalm is concluded by a Gloria Patri doxology, which Reusner also paraphrased. Hymn texts and models. In the following table, the first column has Reusner's text taken from EG  275, the second column the texts from which he derived them, the psalm verses in the King James Version and the doxology for the seventh stanza, and finally the third column Winkworth's translation. EG 275 was modernised compared to the original at the end of the fourth stanza and the beginning of the seventh stanza. Melodies and musical settings. In the first publication in 1533 and still in his 1554 hymnal, Reusner designated the melody to be the Passion song <!--