Many Muslims make the afterlife (paradise) the goal. it’s important to bear in mind that life as just as important and we Muslims should work to improve humanity in this life as well as the next. After all if we devoted our entire lives to individual worship who will convey Islam to the rest of Mankind.
Life is a gift given to us by Allah, we must treasure it. Even if we face hardship and our situation is dire we must look to Allah to ease our pain and be thankful to get one more opportunity to improve our lives and the lives of our fellow mankind.
Reported by Anas (RA): The Messenger of Allah (peace be upon him) said, “Let not one of you wish for death because of a misfortune which befalls him. If he cannot help doing so, he should say: ‘O Allah, keep me alive as long as You know that life is better for me, and make me die when death is better for me”. [Bukhari & Muslim] Sometimes, things can appear hopeless, but always return the matter to Allah, and He will take care of you.