Allah subhanawatallah says in Surah Al Kahf ayah 103-105,
“Say, [O Muhammad], “Shall we [believers] inform you of the greatest losers as to [their] deeds?” (18:103)
“[They are] those whose effort is lost in worldly life, while they think that they are doing well in work.” (18:104)
“Those are the ones who disbelieve in the verses of their Lord and in [their] meeting Him, so their deeds have become worthless; and We will not assign to them on the Day of Resurrection any importance.” (18:105)
The most unsuccessful people are those who confined all their endeavors to the worldly life. That is, whatever they did, they did for this world without paying any regard to Allah subhanawatallah and the Hereafter. As they considered the worldly life to be the real life, they made the success and prosperity in this world their sole aim and object. Even if they professed the existence of Allah, they never paid any heed to the two implications of this profession: to lead their lives in a way to please Allah and to come out successful on the Day they shall have to render an account of what they did in this world. This was because they considered themselves to be mere rational animals who were absolutely independent and free from every kind of responsibility and had nothing else to do but to enjoy the good things of the world like animals in a meadow.
“All their deeds were lost” in the sense that they will be of no avail to them in the life-after-death, even though they might have considered them as their great achievements but the fact is that they will lose all their value as soon as the world shall come to an end. When they will go before their Lord, and all their deeds shall be placed in the Scales, they will have no weight at all whether they had built great palaces, established great universities and libraries, set up great factories and laboratories, constructed highways and railways, in short, all their inventions, industries, sciences and arts and other things of which they were very proud in this world, will lose their weights in the Scales. The only thing which will have weight there will be that which had been done in accordance with the Divine instructions and with the intention to please Allah. It is, therefore, obvious that if all of one’s endeavors were confined to the worldly things and the achievement of worldly desires whose results one would see in this world, one should not reasonably expect to see their results in the Hereafter, for they would have gone waste with the end of this world. It is equally obvious, that only the deeds of the one, who performed them strictly in accordance with His instructions to win His approval with a view to avail of their results in the Hereafter, will find that his deeds had weight in the Scales. On the contrary, such a one will find that all his endeavors in the world had gone waste.
May Allah subhanawatallah pure our intentions, and protect us to be wasted in this Dunya, and make our all actions according to His Divine commandments and accept them as well, Ameen Ya Ghafoor’o Raheem, Ya Rahman o Ya Raheem.