“So Alice got up and ran off, thinking while she ran, as well she might, what a wonderful dream it had been.”
Lewis Carroll, Alice’s Adventures in Wonderland
Lewis Carroll wrote this in Alice’s Adventures in Wonderland, first published in 1865. It appears in Chapter XII.
Where it appears
“Oh, I’ve had such a curious dream!” said Alice, and she told her sister, as well as she could remember them, all these strange Adventures of hers that you have just been reading about; and when she had finished, her sister kissed her, and said, “It was a curious dream, dear, certainly: but now run in to your tea; it’s getting late.” So Alice got up and ran off, thinking while she ran, as well she might, what a wonderful dream it had been.
From the public-domain edition, read it free.