The words are by Wilhelm Hey, a Protestant pastor from Thuringia who was court preacher in Gotha and later superintendent in Ichtershausen. He published them in 1837, in the appendix of a book of fables for children with pictures by Otto Speckter. The three short verses describe the Christ Child, who comes down to earth every year, brings his blessing into every house and stays unseen at the singer's side, leading them by the hand. Hey also wrote the words of Weißt du, wie viel Sternlein stehen, published the same year.
Friedrich Silcher, music director of the University of Tübingen and the composer of the best-known tune of the Lorelei, set the poem in 1842 in his Zwölf Kinderlieder, twelve children's songs on poems from that appendix. The melody moves mostly by step, and its highest note falls on 'nieder', which means 'down'.
Other tunes were written for the same words. Many 19th-century school and Sunday-school songbooks print the song to a melody by the organist Christian Heinrich Rinck. Silcher's is the one sung today, and the one on this page.
This transcription: Friedrich Silcher's melody (1842) as printed in Erk's Deutscher Liederschatz, vol. 1, revised by Max Friedlaender (Leipzig: C. F. Peters, undated), appendix "Weihnachtslieder" No. 1, p. 214, archive.org deutscherlieders00erkl_0, page n223: transposed from E-flat major to C major; left hand by GOONS Studio.
Transcribed by GOONS Studio from the original work, which is in the public domain.
On guitar: Alle Jahre wieder guitar chords and lyrics, with a guitar that strums along.