As Muslims, we must believe magic is real as it is mentioned in both the Qur’an and Sunnah.
Allah says (interpretation of the meaning):
“… but the shayateen (devils) disbelieved, teaching men magic and such things that came down at Babylon to the two angels, Harut and Marut, but neither of these two (angels) taught anyone (such things) till they had said, “We are for trial, so disbelieve not (by learning this magic from us).” And from these (angels) people learn that by which they cause separation between man and his wife, but they could not thus harm anyone except by Allah’s leave. And they learn that which harms them and profits them not.” [2:102]
Narrated from Aisha (RAA); “A man known as Labid ibn al-A’sam from the tribe of Banu Zurayq performed magic on Allah’s Messenger ﷺ until Allah’s Messenger ﷺ started imagining that he had done something which he had not really done. One day or one night while he was with me, he invoked Allah (SWT) for a long period and then said, ‘O Aisha! Do you know that Allah has instructed me concerning the matter I have asked him about? Two men came to me and one of them sat near my head and the other near my feet. One of them said to his companion, ‘What is it that pains this man?’ The other replied, ‘He is under the effect of Matbob’. The first one asked, ‘Who did it?’ The other replied, ‘Labid Ibn Al-A’sam.’ The first one asked, ‘What material did he use?’ The other replied, ‘A comb and the hairs stuck to it and the pollen of a male date palm.’ The first one asked, ‘Where is that?’ The other replied, ‘That is in the well of Daman!” So Allah’s Messenger ﷺ along with some of his companions went there and returned saying, ‘O Aisha, the colour of its water is like the infusion of henna leaves and the tops of the date-palm trees near it are like the heads of the devils.’ I asked, ‘O Allah’s Messenger? Why don’t you show it (to the people)?’ He said, ‘Since Allah (SWT) has cured me, I would not like to let evil spread amongst the people.’ Then he ordered that the well be filled up with earth.” (Bukhari & Muslim)
Abu Hurairah (RAA) narrated that the Prophet ﷺ said: “Avoid the seven deadly sins.” People asked, ‘What are they?’ The Prophet ﷺ replied, “Shirk (polytheism), Sihr (Magic), unlawful killing of a person, living on money from usury, usurping an orphan’s wealth, retreating at the time of Jihad and accusing an innocent married women of fornication.” (Bukhari & Muslim)
We need not fear magic if we seek Allah’s Pleasure by drawing closer to him, reading ayat al kursi, the three quls and remember the morning & evening adhkar.