Originally written as a poem in 1915, it was put to music in the late 1930s, and became very popular during WW2. The most famous versions are by Marlene Dietrich.