Islam has prohibited any form of magic and it’s thought of a Haram act. Usually, seeing your self doing magic in a dream has a nasty that means as per Islam.
1- In keeping with Ibn Sirin رحمة الله عليه, the best dream interpreter of Islam, doing magic in a dream implies that the individual will get concerned in shameless and defective acts.
2- If an individual sees somebody casting magic spells in opposition to him, it reveals distress and trial for the dreamer.
3- In keeping with Jabar Maghrabi رحمة الله عليه, doing magic in a dream is an indication of telling lies and being fraudulent with others. Magic in desires is an indication of enemy who betrays.
Disclaimer: The fabric used for the interpretation of desires has been extracted from the Ibn Sirin book for dream interpretations. You possibly can learn the e-book here.