People often don’t realise that depression is recognised in Islam. Even the most noble of people were tested with grief, depression, anxiety and sadness.
You can have complete īmān and still be depressed. It is an illness, and anyone can be tested with it.