In the writings of Muslim scholars, the term Nafs was used to denote individual personality and the term fitrah for human nature. Nafs encompassed a broad range of faculties including the qalb, the ruh, the aql and irada. Muslim scholarship was strongly influenced by Greek and Indian philosophy as well as by the study of scripture, drawing particularly from Galen' understanding of the four humors of the body. In medieval Islamic medicine in particular, the study of mental illness was a speciality of its own, and was variously known as al-‘ilaj al-nafs, al-tibb al-ruhani and tibb al-qalb. The ClassicalArabic term for the mentally ill was "majnoon" which is derived from the term "Jenna", which means "covered". It was originally thought that mentally ill individuals could not differentiate between the real and the unreal. However, due to their nuanced nature treatment on the mentally ill could not be generalized as it was in medieval Europe This term was gradually redefined among the educated, and was defined by Avicenna as "one who suffers from a condition in which reality is replaced with fantasy".
Ethics and theology
In the Islamic world, special legal protections were given to the mentally ill. This attitude was reinforced by scripture, as exemplified in Sura 4:5 of the Qur'an: This Quranic verse summarized Islam's attitudes towards the mentally ill, who were considered unfit to manage property but must be treated humanely and be kept under care by either a guardian or the state. This belief was similar to that of modern psychology, specifically to Sigmund Freud's beliefs that the mentally ill require help and treatment, as opposed to how society dealt with the mentally ill before modern psychology.
Muhammad ibn Zakariya al-Razi, known as Rhazes in the western tradition, was an influential Persian physician, philosopher, and scientist during the Golden Age of Islam, and among the first in the world to write on mental illness and psychotherapy. As chief physician of Baghdad hospital, he was also the director of one of the first psychiatric wards in the world. Two of his works in particular, El-Mansuri and Al-Hawi, provide descriptions and treatments for mental illnesses.
Abu-Ali al-Husayn ibn Abdalah ibn-Sina, known to the west as Avicenna, was a Persian polymath who is widely regarded for his writings on such diverse subjects as philosophy, physics, medicine, mathematics, geology, Islamic theology, and poetry. In his most widely celebrated work, the Canon of Medicine, he provided descriptions and treatments for such conditions as insomnia, mania, vertigo, paralysis, stroke, epilepsy, and depression as well as male sexual dysfunction. He was a pioneer in the field of psychosomatic medicine, linking changes in mental state to changes in the body.
Mental healthcare
The earliest bimaristans were built in the 9th century, and large bimaristans built in the 13th century contained separate wards for mentally ill patients.
Treatment of mental illness
In addition to medication, treatment for mental illness might include baths, music, and occupational therapy reflecting the great emphasis placed on the relationship between illness of the mind and problems in the body. Medicine would be prescribed in order to re-balance the four humors of the body, an imbalance of which might result in psychosis. Insomnia, for example, was thought to result from excessive amounts of the dry humors which could be remedied by the use of humectants.