The Messenger of Allah (PBUH) had a Jewish servant boy. The Jews approached him and kept after him until he gave them some fallen hair from the Prophet (PBUH), as well as a few teeth from his comb. The Jews used these to cast a spell of black magic on him (PBUH). The person who was behind this was Labid ibn al-A'sam Al Yahudi. He then put the hair in a well belonging to Banu Zurayq called Dharwan. The Messenger of Allah (PBUH) fell ill for a period of six months. During which time the hair of his head began falling off & he imagined things that did not occur.
The Messenger (PBUH) was one day sleeping, when he saw two angels coming to him. One of them sat at his head and the other at his feet. The angel who sat at his head asked: 'What is wrong with the man?' The second angel responded: 'A spell of black magic was cast on him'. The first one asked: 'And who is responsible for this sorcery?' The second angel answered: 'It is Labid ibn al-A'sam, the Jew'. The first angel asked again: 'What did he use to cast black magic on him?' The second angel said: 'He used a comb and fallen hair'. The first angel asked: 'Where is it now?' The second angel said: 'It is inside the skin of pollen from a male date palm tree beneath the stepping stone which is inside the well of Dharwan', at which point the Messenger of Allah (PBUH) woke up. He said:
O 'Aisha, do you not think that this is from Allah to inform me of the cause of my illness?
He then sent 'Ali [ibn Abi Talib], al-Zubayr [ibn al-'Awwam] and 'Ammar [ibn Yasir] who drained the water of that well as one would drain the dust of henna. They lifted the stone and got the Amulet out and found therein some of the hair of the Messenger of Allah (PBUH), as well a few teeth from his comb.
They also found with it a string with eleven knots knitted with needles. Allah, exalted is He, then revealed Surah al-Falaq and Surah al-Nas (al-Mu'awwidhatayn). With each verse that the Messenger of Allah (PBUH) read one knot was untied and the Prophet (PBUH) felt some lightness. When the last knot was untied, the Prophet (PBUH) got up as if he was released from a cord to which he was tied up. Those around him said:
O Messenger of Allah, should we not head toward that evil person and kill him?
He (PBUH) said:
As for me, Allah has cured me, and I dislike causing evil to other people'.
Aisha (RA), may Allah be pleased with her, who said:
A spell of black magic was cast on the Prophet (PBUH), such that he used to imagine that he did things when he did not. He was at my place, one day, and he began imploring Allah in earnest. Then he said: 'Did you not feel, O Aisha, that Allah has answered me about that which I have enquired?' I said: 'And what is that, O Messenger of Allah?' He said: 'Two angels came to me…', and he mentioned the whole story
The whole story is narrated by Bukhari from 'Ubayd ibn Isma'il from Abu Usamah. The same narration has different channels of transmission in both the authentic collections of Sahih Bukhari and Muslim.
If anyone feels afflicted by magic they should recite the above mentioned Surah’s (Surah Falaq, Chapter 113 and Surah Naas, Chapter 114 from the noble Qur’an) with the intention of receiving a cure from Allah (SWT). This should be done morning & evening at the least. Besides this a person may also recite these Surah’s onto water & drink from that water as often as possible. By the permission of Allah (SWT) any magic will be nullified as no magic/spell is a match for these sacred verses of the noble Qur’an.
Al-Hafiz Ibn Hajar Al-'Asqalani (rahimuAllah) said in Al-Fath that Ibn Abtal stated in the books of Wahab bin Menabah to take seven leaves of a green Sidr, grind them with two rocks, add water to it, read the verse of Al Kursi (2:255) and Al-Qawakil (the Surah's which start with "Qul"), take three sips, then wash up with the rest. This will remove all of his afflictions, and is a cure for men who have sexual disorders.
Fath Al-Bari -10/233
Al-Lalkaii said that Mohammad Ibn Othman related that Said bin Mohammad Al-Hanat stated, ''Ishaq ibn Abi Israel said, "I heard Sufyan says that Sulayman ibn Omaya (Sheikhh of Thaqif) ibn Masoud heard Aisha (ra) advise a woman to use Sidr and water to wash the traces of magic.
Sharh Usul I'tiqad Ahl As-Sunnah wal-Jamaa -7/1288
Shaykh Abd Al Aziz bin Abdullah bin Baaz (rahimuAllah) said that the cure of magic after its affliction is beneficial, Allah Willing. A man who cannot have sexual intercourse with his wife is advised to take seven green leaves of Sidr, grind them, put them in a container of water enough for washing the body. He should read the verse of Ayah ul Kursi (2:255), Al Ikhlaas (112), Al Falaqq (113), An Naas (114).
He should also read the verses of magic in Surah Al-Aaraf (7) where Allah says,
"And We inspired to Moses, "Throw your staff," and at once it devoured what they were falsifying. | So the truth was established, and abolished was what they were doing. | And Pharaoh and his people were overcome right there and became debased. [He is referring to verses 117-119]
The verses in Surah Yunus (10) where Allah says, "So when the magicians came, Moses said to them, "Throw down whatever you will throw." | And when they had thrown, Moses said, "What you have brought is [only] magic. Indeed, Allah will expose its worthlessness. Indeed, Allah does not amend the work of corrupters. | And Allah will establish the truth by His words, even if the criminals dislike it." [Here, he is referring to verses 80 to 82]
And the verses in Surah Taha (20), in which Allah says, "They said, "O Moses, either you throw or we will be the first to throw." | He said, "Rather, you throw." And suddenly their ropes and staffs seemed to him from their magic that they were moving [like snakes]. | And he sensed within himself apprehension, did Moses. | Allah said, "Fear not. Indeed, it is you who are superior. | And throw what is in your right hand; it will swallow up what they have crafted. What they have crafted is but the trick of a magician, and the magician will not succeed wherever he is." [Here the Shaykh is referring to verses 65 to 69]
After reading the above verses, one needs to take three sips from the water container, then wash up with the rest [make Ghusl from it]. This will remove the affliction, Allah Willing. If necessary, it could be repeated twice or more until one is cured.
Majmu Fatawi Shaykh Abd Al Aziz bin Abdullah bin Baaz
Ghusl should be made in a clean place and the water should be caught in a container and poured outside in the garden/yard. It is not permitted to let it go into the drain due to it being water upon which the Qur'aan has been recited.
Shaykh Abdullah bin Abd Ar Rahman Al-Jibreen stated, "I used Ruqya on relatives and friends who were not able to have intercourse with their wives following what Ibn Katheer (rahimuAllah) said. I used Sidr leaves and recited the verses he mentioned and they were cured, Allah Willing.''
It is worth mentioning that using the water of Sidr in the stated manner has a great effect, and lots of therapists are aware of this fact. However, its benefit is not only confined to men who cannot have intercourse with his wives, but also includes those afflicted with epilepsy, evil eye and magic in general (used for washing only).