It was originally published in 1973 as a short story in the anthology "Night Shift" and later expanded into a novella in the 1982 collection "Skeleton Crew".