According to rahyafte (the missionaries and converts website):
Life in this world is of trials and tests, and is a bridge to the Hereafter. Even the lives of the Prophets, were never free of troubles.
The Islamic system aims at creating a balance in a Muslim’s life, by harmonizing all the circles of relationships between the individual and his inner and outer environments.
In this article, the Islamic way of dealing with depression will be discussed.
The View of Muslim at Difficulties
– Islam teaches us that we should put a goal, and focus it in our life till we come after this life. So the worldly life we live is temporary, and the Hereafter is the true life in which there is no sadness. Most of our problems of this life lose their importance in our lives, and subsequently lose their power of having negative impact on us.
The hardships should not be the main concern of the Muslim, nor stop him from focusing.
And this worldly life is not but diversion and amusement. And indeed, the home of the Hereafter – that is the [eternal] life, if only they knew [Quran.com/29/64]
With Difficulty, Comes Ease
– Life is one difficulty after another, one task after another. Islam teaches us: while life tests us, there is ease after hardship. Tough times only mean: the times of ease are near.
Allah will bring about, after hardship, ease. [Quran.com/65/7]
Indeed, with hardship [will be]ease. [Quran.com/94/6]
“Or do you think that you will enter Paradise while such [trial] has not yet come to you as came to those who passed on before you? They were touched by poverty and hardship and were shaken until [even their] messenger and those who believed with him said,”When is the help of Allah ?” Unquestionably, the help of Allah is near.” [Quran.com/2/214]
– There is good from Allah for him in everything:
The prophet (PBUH) said: “Strange are the ways of a believer for there is good in every affair of his and this is not the case with anyone else except in the case of a believer for if he has an occasion to feel delight, he thanks (God), thus there is a good for him in it, and if he gets into trouble and shows resignation (and endures it patiently), there is a good for him in it.” [Sahih Muslim]
There is Good in What Seems Bad to you
Perhaps it is a good time to turn to the One Who controls everything. It can give a person the ability to see the positive in the overwhelmingly negative situation.
Source: explore-islam.com