From the eighteen "Leipziger Choräle": BWV 653a.
BWV 653b is an earlier version (1708) with double pedal and Bach rearranged it when he lived and worked in Leipzig.
The "Great Eighteen Chorale Preludes" were all originally written when Bach lived in Weimar (1708-1717) and somewhere in the last 10 years of his life he has rewritten them, probably with the intention to publish the set.