Magic and sorcery have been seen by true Islams as advice by devils or demons and no one should indulge in any of this type of future-telling or advice. Allah and the Prophet Muhammad are the only ones who have true access to this knowledge and so they are the only ones who should be consulted on it. Allah has the answers to every problem and so should be the one to be consulted for any desire or trouble, not anyone else. However, this is not to say that magic shows are disallowed in Muslim countries, if they can prove they are only for entertainment and not for anything else.
The Prophet Abu Hurairah warned people against seven things in the world, of which magic was one of them. Whatever people consult or whomever they visit to learn these things is considered a rejection of Allah in a very bad sense, and punishment will strike these misguided people. Even the lighter forms of future-telling such as reading the stars for a person or telling their life from their palms is also forbidden. Anyone who indulges themselves with magic by visiting a witch or a soothsayer is punished by Allah by having his or her prayers ignored for forty days.
Even those who believe in it but do not practice magic are considered sinners. Magic is thought to be concerned with powers given by Satan, even though many practitioners of magic try not to bring harm to others by thoughts, deeds or other means. There is always the way down into the forbidden arts, which are considered the blackest imaginable. Many acts of absolute atrocity are committed against men, women and children and animals in the guise of magic and the lunatics who strive to make it acceptable to the world.
Magic, simple or complex, is simply seen as haraam or forbidden. It is a temptation to Man to ask of others rather than Allah for answers, future-seeing and other things, including temptation into lust, eating wrongly, consuming alcohol, all of which are forbidden in the Muslim faith. Some practitioners of the dark arts desecrate graves, eat pork and drink blood, all very wrong occupations to a Muslim and attributed to Satan, as well they should be in any country.
To a Muslim, competence in magic can only be attributed to Satan, not Allah, and, as such, it is thought the person may obtain greater powers than Allah. To a true believer this cannot be, as the only Power is Allah, and He has not given permission for this to be so. Many things are attributed to witches, warlocks and others in a Muslim country, and they will be lucky to escape with their lives if they are uncovered. Allah’s punishment is not usually very pleasant for any practitioner of the so-called dark arts.