Once, Aisha was with the Prophet (salla Allahu alayhi wa sallam) and he was sick with a high fever, in great pain. Aisha remarked at how painful and difficult this was, even for her to watch. The Prophet (salla Allahu alayhi wa sallam) remarked,
“O Aisha! Do you not know that Allah makes matters difficult for the believer so that all of his sins may be forgiven?” [Ibn Sa’d; authentic]
Realize that as tough as life gets, if you are patient and expect relief and reward, both of those will inevitably be given to you. Always remember the purpose of such tests: to raise our ranks and forgive our sins. And know that the trials of this world are infinitely easier than the trials of the next, and the joys of the next world are infinitely better than the joys of this world.