Hypnopompic hallucination

Hypnopompic hallucination: A vivid dreamlike hallucination that occurs as one is waking up. The opposite of an hypnagogic hallucination, which occurs as one is falling asleep.