According to what I have found, J.S Bach composed the BWV 469; Ich steh an deiner Krippen hier, in 1736. Text by Paul Gerhardt from 1653. There are 15 (!) verses, my version has three - choose the text as you please.
This sound excerpt is based on a simulation by the Sibelius Music program.