Luther wrote "Aus tiefer Not schrei ich zu dir" ("From depths of woe I cry to you") in 1523 as a hymnic version of Psalm 130 and sent it as a sample to encourage evangelical colleagues to write psalm-hymns for use in German worship.
What is the basis of the hymn?
Psalm 130