Lying in bed you’re likely to catch a glimpse of something in the shadows. Every culture has legends about shadowy figures, and ours is no exception. Shadow figures are humanoid shapes the brain sometimes sees when immersed in nearly total darkness. They generally take the appearance of an adult male, sometimes wearing a distinctive hat.
They usually appear when you are falling asleep and your brain is settling down.