
Assaalam alaykum,
Hazrat Ayesha has stated that a person who belonged to the tribe of Qabila Banozariq named Lobaid bin al asim who had cast a spell of magic on Prophet Mohammad (SAW). Consequently, Prophet Mohammad (peace be upon him) used to forget about certain minor works and get confused. This situation went on for some time until one night when he was with Hazrat Ayesha, he kept praying continuously. Later on he said to her that ‘Do you know Allah has heard my prayer’? He said that two people came near me. They were angels. One of them sat near my pillow and the other one besides me. One of them asked the other one that what has happened to this person. The other angel replied that he is under a magic spell. To which the first one asked that who has done the magic. He got a reply that the name of that person is Ans lobaid bin al asim. Then the first angel asked that how has the magic been cast, to which he got the answer that it has been cast on the hair from his comb and the inner cover of the bunch of dates. Lastly he asked that where is the thing kept on which the magic has been cast. He got the answer that it has been kept in burazanwaan.
So Prophet Mohammad (SAW), went to that well. In some places it has been mentioned that he had taken Hazrat Ali along with him and he went down into the well. He was being protected and guided by the angels.
The hex was thus broken and the Prophet (SAW) told Hazrat Ayesha that the color of the water had turned red and the head of the dates had become very repulsive like the devils. Hazrat Ayesha asked him that oh Prophet of Allah! Did you not take out the magic from that well? To which he replied that Allah has granted me protection and I do not want the people to indulge in something so satanic. After this Prophet Mohammad (SAW) ordered the magic to be removed and buried in the sand. Refer to Sahih Bukhari- book- 10, page no. 222. muslim jild 14 sifa 174 kitab islam bab al shir.
SurAH Naas and Surah Falq were to be bestowed which are also called Mu'awwidatain. The above mentioned angels were the ones of these two Quranic verses.
The jews had conspired with Lobaid bin al asim to cast a magic spell on Prophet Mohammad (SAW) and in return they promised to offer him 3 dinars. This wretched man managed to do this work by taking the help of the little girl who used to visit the house of Prophet Mohammad (SAW). She took some of the hair clinging in his comb and gave it to the magician.
The magic done on Prophet Mohammad (SAW) was a dangerous one and it meant to kill him. But he was protected by the mercy of Allah.