Eliphaz echoes Job’s words in Job 21:14-16 but he draws a very different conclusion. When Job had used these words he intended to show how much the wicked get away with, for they openly defy the Lord, telling him to depart from them, and declaring that he can do nothing real to help them, and yet no hand comes forth from heaven to strike them.
Several versions follow the LXX and read, ‘What can the Almighty do to us?’, making this part of what the wicked say to God. If the correct Hebrew reading of verse 17 is ‘to them’, then these are the words of Eliphaz, and, as Gill suggests, may be rendered ‘What has the Almighty done to them?’ – the word ‘can’ not being in the Hebrew. That is a slightly harder reading, given the disjunctive nature of verse 18 – ‘Yet he filled their houses with good things’ – which demands a contrast with what went before. The contrast would have to be with the earlier words, ‘Depart from us.’