وَقُلِ اعْمَلُوا فَسَيَرَى اللَّهُ عَمَلَكُمْ وَرَسُولُهُ وَالْمُؤْمِنُونَ ۖ وَسَتُرَدُّونَ إِلَىٰ عَالِمِ الْغَيْبِ وَالشَّهَادَةِ فَيُنَبِّئُكُم بِمَا كُنتُمْ تَعْمَلُونَ
Depression and hopelessness are types of self-indulgence. We are slaves of Ar-Rahman; we are here to work and serve Him. How we feel has nothing to do with it.
You have no right to despair, so forget about whether or not you think you have a reason to.