I am a Muslim if I feel hopeless and depressed I will worship and tell my God and surrender and that is enough to calm myself down to be able to accept whatever problem I am currently experiencing, besides that seeing people who are experiencing more serious problems motivates me to be better and always instill in myself not to give up easily in this tough life because everyone is facing trials on their respective paths.
Peace unto you and everyone!!. I was literally just about to type this then i saw your comment. Honestly, praying helps a lot when someone is depressed. Speaking from experience, when i was going through severe depression, that was when i started reading books alot and it helped tbh. But it only helped me manage it not cure it, not until i started practicing worshiping like the muslim i was should because i do neglect prayers then.
It was that time of my life that shaped me into a good believer and sincerely i was cured. Now whenever, I feel down or sad and i pray about it, i feel calm and better to go through life.