when i was a kid (like 10-11) I asked my dad why if suicide is haram, then why does Allah make a person depressed or put them in that situation that they think of it...and he told me that whatever they're going through is a test....
shrugs
Life is a test for sure but have you ever been in a situation , where it doesn’t matter , whether you pass or fail that test , all you wana do it to ‘ say I quit ‘ and leave the exam hall ....