What is this type of figurative language?

“They tried to soothe him, but in vain” 
Could this be a figurative language, if so, what type?

?2021-04-07T19:04:57Z

It's not figurative at all. It's absolutely literal. They tried to soothe him, but it didn't work.