Allah revealed a Surah to his Prophet that deals with the psychology of depression...It is Surah of al-Duha...
What is Taqwa?
A remarkable advice from a well-known Scholar Ibn Jawzi (may Allah the Almighty have Mercy on him).