Now, this person has just two places—this world and the other world. And there is a third, the place of dream where the two meet. Standing there in the place where the two meet, he sees both those places—this world and the other world.
—Brhadåranyaka Upanisad 4.3.9
See also Sleep and Dreams in Indian Culture