"Befiehl du deine Wege" is a Lutheran hymn by Paul Gerhardt. It is one of his best known hymns, and was first published in 1653 in Johann Crüger's collection of hymns and popular religious songs Praxis pietatis melica.
The hymn is in both the standard Lutheran and Catholic German hymnbooks.
Johann Sebastian Bach used "Befiehl du deine Wege" and its 1601 tune by Hans Leo Hassler ("Herzlich tut mich verlangen", Zahn No. 5385a) in his St. Matthew Passion.
"Befiehl du deine Wege" is also sung to a 1603 tune by Bartholomäus Gesius, known as "Lobet Gott unsern Herren" (Zahn No. 5393): Bach used this melody for instance in his BWV 272 four-part chorale.