In Macbeth, "whence" means "from where" or "from what place.Shakespeare frequently employed it to add a sense of formality and elegance to his writing.
Example for using whence in Macbeth:
Act 1, Scene 2: King Duncan asks, "Whence cam'st thou, worthy gentleman?" This translates to "Where did you come from, worthy gentleman?"