assuming that you're talking about the line from the act IV scene 3 of William shakespeare's Macbeth, the figure of speech that he used is : Personiffication.
In the excerpt, he described an abstract quality in human form, which is point to the use of personification
hope this helps