The Lied was written as a belated response to a request from the operatic soprano Pauline Anna Milder-Hauptmann, a friend of Schubert. She had requested a showpiece that would allow her to express a wide range of feelings. It was published a year and a half after Schubert's death. Milder sang it for the first time at the House of the Blackheads in Riga on 10 February 1830.

Original Name Der Hirt auf dem Felsen
Librettist Wilhelm Müller, Karl August Varnhagen von Ense
Date of composition 1828
First published 1830
Type Lied
Tonality B Major
Catalogue D 965
Approx. duration 10 minutes
Instruments Voice
Clarinet
Piano
Autotranslations beta Franz Schubert: The Shepherd on the Rock en si majeur, D 965
Franz Schubert: The Shepherd on the Rock in si maggiore, D 965
Franz Schubert: The Shepherd on the Rock H-dur, D 965