Brahms got inspired by Des Knaben Wunderhorn (a collection of German folk poems) for the first version of the lyrics. He then adapted the second verse for the lullaby from Georg Scherer’s poem written in 1849.