Read this sentence:

Leaving home for the last time, the porch lights winked at me as if to say goodbye.


What figure of speech is used in the sentence?
A Hyperbole
B Personification
C Alliteration
D Metaphor