It was a hypnapompic hallucination. They happen right as you wake up. I get them too.