It’s not what you gain in this life, it’s whether what you gain will last till the very end.
It’s possible to gain much in this life and lose it all in the end! It’s also possible to save your soul and make everything in this life count for eternity.