In answering your question, I can only cite here one of my earlier answers to a similar question:
“I pray to Allah to grant you relief, and inspire you to have patience to face His will. While empathizing with your concerns about your condition, I must say that taking medication and treating ourselves through experts is an important Islamic teaching. The Prophet, peace be upon him, reportedly said, “Treat yourself through medications, for Allah has sent down a cure even as He has sent down the disease.” In this regard, the Prophet, peace be upon him, used to consult experts who visited Madinah from all over the Arabian peninsula, as his own beloved wife Aisha tells us.
Regarding mental illnesses, they too are illnesses and as such, should be treated. Otherwise, we will be asked by Allah why we did not use the treatments that were available to us. Whether or not a particular medication is addictive, is not for you or I or anyone else to determine and should be left in the hands of those trained in that particular field, in your case, only a trained psychiatrist is in a position to judge whether or not you should fear addiction.
That being said, “all medications have side effects but are generally prescribed when it is determined that the potential for benefit outweighs the risks – this could be the situation in your case.” However, only your doctor (not anyone else) is in a position to gauge this because of his/her extensive training in the area and specific knowledge of your illness.
Coming to the issue why Allah is testing you, it is not for me to speak on behalf of Allah. As those who believe in His sovereignty, we are expected to surrender to His will. His will defies human logic and therefore, it is not up to us humans to question His will. We are simply to surrender to it, and ask Him to make us content with His will. Nevertheless, we are to try our best to avert what can be averted, while bearing patiently that which cannot be averted. This alone is the perfect recipe for peace and tranquility for our souls.
Toward this end, the following few du’as can help you to beseech Allah’s mercy for cure and healing, and ultimately peace of mind:
Allaahumma rabba al-nnas adhih al-ba’sa ishfi want al-sshaafi laa shifaaa illa shifa’uka shifa’an laa yughaadiru saqaman.
O Allah, Your are the Lord of mankind. Remove my affliction and bring down cure for there is no cure except Yours. Cure me in such a way that no trace of illness is left.
As’a lu alAllah al-zheem rabba al-arshi al-azheem an yashfiyanee.
I beseech Allah, the Lord of the Mighty Throne, to cure my affliction and grant me relief.
Also, read Surat Al-Fatihah and blow into your hands, then wipe over your face and chest as often as you can, asking Allah to grant you relief.
May the Almighty grant you peace of mind, body and soul, ameen.
Allah Almighty knows best.
Views expressed by hosts/guests on this program (live dialogue, Facebook sessions, etc.) are their own and their appearance on the program does not imply an endorsement of them or any entity they represent.