The Islamic reaction towards magic did not condemn magic in general and distinguished between magic which can heal sickness and possession, and sorcery. The former is therefore a special gift from God, while the latter is achieved through help of Jinn and devils.