Prophet Muhammad himself urged people to "take medicines for your diseases", as people at that time were reluctant to do so. He also said,
"God created no illness, but established for it a cure, except for old age. When the antidote is applied, the patient will recover with the permission of God."This was strong motivation to encourage Muslim scientists to explore, develop, and apply empirical laws. Much attention was given to medicine and public health care. The first hospital was built in Baghdad in 706 AC. The Muslims also used camel caravans as mobile hospitals, which moved from place to place.
Since the religion did not forbid it, Muslim scholars used human cadavers to study anatomy and physiology and to help their students understand how the body functions. This empirical study enabled surgery to develop very quickly.
Al-Razi, known in the West as Rhazes, the famous physician and scientist, (d. 932) was one of the greatest physicians in the world in the Middle Ages. He stressed empirical observation and clinical medicine and was inrivalled as a diagnostician. He also wrote a treatise on hygeine in hospitals. Khalaf Abul-Qasim Al-Zahrawi was a very famous surgeon in the eleventh century, known in Europe for his work, Concessio (Kitab al-Tasrif).
Ibn Sina (d. 1037), better known to the West as Avicenna, was perhaps the greatest physician until the modern era. His famous book, Al-Qanun fi al-Tibb, remained a standard textbook even in Europe, for over 700 years. Ibn Sina's work is still studied and built upon in the East.
Other significant contributions were made in pharmacology, such as Ibn Sina's Kitab al-Shifa' (Book of Healing), and in public health. Every major city in the Islamic world had a number of excellent hospitals, some of them teaching hospitals, and many of them were specialized for particular diseases, including mental and emotional. The Ottomans were particularly noted for their building of hospitals and for the high level of hygeine practiced in them.