As Bach is known to have used musical material which also appeared in two surviving works, one being the St Matthew Passion, it has been possible to make reconstructions.
His commissions in the period 1723–29 included the 1726 secular cantata Steigt freudig in die Luft, BWV 36a, to celebrate the birthday of Princess Charlotte, Leopold's wife, who was to survive the deaths of her husband and two children from smallpox.
Presumably the delay in burying the prince gave Bach a reasonable amount of time to compose the Trauermusik (funeral music).
On 23 March 1729 the prince's body was transferred from the court chapel to the crypt of St James' church where the ornate casket rests to this day.
[6] The close relationship between the Passion and the Trauermusik for Prince Leopold is reflected in their sharing a number in the Bach-Werke-Verzeichnis (BWV), the standard catalogue of Bach's works.
The piece in question is "Mit Freuden sei die Welt verlassen" (music lost, reconstructed from St Matthew Passion, BWV 244, "Aus Liebe will mein Heiland sterben")