The hat appeared to him in a dream