Sentence: "The wind whispered through the trees."
This is an instance of personification.
Personification assigns human traits to non-human things or inanimate objects. The word "whispered" implies a human action, attributed here to "the wind." This imbues the wind with a human characteristic, enhancing the sentence's vividness and expressiveness.
Reasons why other figures of speech are incorrect:
Consequently, the applicable figure of speech is personification.