Prophetic medicines for physical and psychological diseases

The Muslim who adheres to the teachings of Islam and applies them would live a life of happiness and he would be safeguarded him from sicknesses that result from psychological conditions.

Supplication and remembrance of Allah are among the most important methods by which one would safeguard himself from diseases before they befall man. Supplication and remembrance of Allah would also waive calamities after they have befallen man. Allah says: ( And We send down of the Qur’an that which is healing and mercy for the believers, but it does not increase the wrongdoers except in loss.)

Allah also says: (Say, ‘It is, for those who believe, a guidance and cure.’)

It should be known that seeking treatment from Qur’an and Sunnah of the Messenger (s) would not have an effect unless the one who is administrating the cure has firm Iman. This, of course, does not mean that one should leave aside conventional medicines and medical treatment. The Prophet (s) said: ‘Seek medical attention O slaves of Allah, for indeed Allah has not placed a disease except that he has placed a cure for it.’
(Ibn Hibban)

Yet, one should be aware not to seek medical treatment in unlawful things. Abu Hurairah said: ‘The Messenger of Allah (s) forbade using unlawful medicines.’

Ibn al-Qayyim, may Allah have mercy on him, said: ‘There is a point here which must be seriously considered. The remembrance of Allah, verses from the Qur’an, and supplications that are used for treatment, even though they are beneficial in themselves, require that the individual (they are read upon) be strong and faithful, and that the one who reads them has esteem and strong Iman.
So (when these are read and no effect is seen) this is due to weakness of the one who has administered the treatment, or due to the weakness of the one upon whom this is read, or for some other strong reason which would prevent the effectiveness of the treatment, as is the case with conventional medicines.
The ineffectiveness of a medicine could be caused by it being rejected by one’snature.’
Ibn al-Qayyim, may Allah have mercy on him, also said concerning prophetic treatment for sicknesses: ‘The cure for this type (of sickness) is through two things: The first pertains to the patient, and the second to the one who administers the cure. From the patient’s side, it pertains to the strength of his soul and sincere return to Allah, the Creator of all, and to seek refuge with Allah truthfully.
One would not be able to harm his enemy with his weapons unless two matters are present: The weapon in itself is strong and enduring, and one’s forearm is strong as well. Whenever one of these two things is not present the weapon would be of no use.
So what if both of these things are not present? One’s heart would be far from the Tawheed (belief in the Oneness of Allah), true dependence upon him, and he would have no weapons. The second matter is that the one who administers the treatment must also possess these two traits as well.
(Zaad al-Ma'aad. Vol. 4 pg. 67-68)