the type of figure of speech has been used in these lines is personofication
i hope this helps you out
8.1m questions
10.8m answers