فَمَآ أَغْنَىٰ عَنْهُم مَّا كَانُوا۟ يَكْسِبُونَ
Fam a aghn a AAanhum m a k a noo yaksiboon a and of no avail to them was all [the power] that they had acquired.
 - Mohammad Asad
And all their labor of building their homes through carving the rocks did not
avail them.
 - Muhammad Farooq-i-Azam Malik
and all they achieved was of no help to them.
 - Mustafa Khattab
And that which they were wont to count as gain availed them not.
 - Marmaduke Pickthall
And of no avail to them was all that they did (with such art and care)!
 - Abdullah Yusuf Ali