The Interpretation of Dreams by Sigmund Freud Chapter 6 Page 33

wish-fulfillment by experience.2 Thinking is indeed nothing but the equivalent of the hallucinatory wish; and if the dream be called a wish-fulfillment this becomes self-evident, as nothing but a wish can impel our psychic apparatus to activity. The dream, which in fulfilling its wishes follows the short regressive path, thereby preserves for us only an example of the primary form of the psychic apparatus which has been abandoned as inexpedient.

What once ruled in the waking state when the psychic life was still young and unfit seems to have been banished into the sleeping state, just as we see again in the nursery the bow and arrow, the discarded primitive weapons of grown-up humanity. The dream is a fragment of the abandoned psychic life of the child. In the psychoses these modes of operation of the psychic apparatus,