“And all day long the sun plays hide and seek with the shadows”. Which figurative device is used in the poetic line?

“And all day long the sun plays hide and seek with the shadows”. Which figurative device is used in the poetic line?

Explanation

Personification is when human qualities are given to non-human things.

Here, the sun is described as "playing hide and seek", which is a human action.