;Thou com'st in such a questionable shape," Hamlet says (1.4.43). In Act II, he further questions the identity of the ghost saying to himself,
May be a devil, and the devil hath power
T' assume the pleasing shape, yea, and perhaps
Out of my weakness and my melancholy,
As he is very potent with such spirits,
Abuses me to damn me. (2.2.610-615)
...