Hermann Hesse
The story can be found in "The Complete Fairy Tales of Hermann Hesse".