This is explicitly stated in the first line: "Once upon a midnight dreary, while I pondered, weak and weary..."