Az-Zumar - 39:50

قَدْ قَالَهَا الَّذِينَ مِن قَبْلِهِمْ فَمَا أَغْنَى عَنْهُم مَّا كَانُوا يَكْسِبُونَ
[39:50]
Those before them did say it indeed, but what they earned availed them not.
Thus did the (generations) before them say! But all that they did was of no profit to them.
Those before them said it, yet (all) that they had earned availed them not;