This chorale survives without text. The text that appears here is the one provided by editors of the Bach Gesellschaft Ausgabe (BGA).
Speculation regarding liturgical occasion: According to Smend, this setting may have come from the lost St. Mark Passion (BWV 247). He suggests three possible movements:
1) Movement 23 using the 6th verse of O Haupt voll Blut und Wunden
2) Movement 28 using the 1st verse of Befiehl du deine Wege
3) Movement 30 using the 2nd verse of O Haupt voll Blut und Wunden
(See NBA III/2.2 KB, p.329, also III/2.1 KB, p.99)
Smend’s suggestion is supported in two ways: 1) This chorale tune has a strong association with Good Friday, and 2) its position in the Dietel Collection, sections of which are arranged loosely by the liturgical calendar – Dietel chorales 136, 138, 139, 140 and 142 are all from Good Friday passions (BWVs 244 & 245).