Hypnopompia

Hypnopompia [hypnopompic] (from Greek: ὕπνος, húpnos, "sleep" + πομπέ, pompé, "conduct[or], guide"; "guide from sleep") is the state of consciousness that exists between sleep and wakefulness (as in a person awakening from sleep), as opposed to hypnagogia, the state between wakefulness and sleep (as in a person falling asleep). Myers describes it as "consisting generally in the persistence of some dream-image into the first moments of waking," as a lingering memory or fading continuation of the activity of a dream.