Yeah, muslims often do ruqya, which is sort of like an excorcism. There are different kind of ruqyas. I don’t know much about this aspect of Shariah, so I apologize. What’s done most often is that certain parts of the Qur’an are recited over a person who is being tormented by evil jinns in some way (jinns are invisible creatures that muslims believe in. Some jinns are good and some are bad). The last two surahs of the Qur’an are pretty much a staple of the practice of ruqya because both surahs are appeals to Allah for protection from evil.
I’ve done ruqya on myself a few times. I suffer from panic attacks; I will occasionally recite some Qur’an to remove any possibility of the panic attack getting worse due to a jinn that may be around (I don’t believe that all panic attacks are caused by jinns, though).
Ruqya removes effects of black magic, suffering due to the evil eye and torment being carried out [on you] by evil jinns. There are a lot of phonies out there, so be careful. Some Islamic majority countries, like Pakistan, have what can best be desribed as an equivalent to a Benny Hinn show (because that’s what they are; they’re not prayer conferences-- they are shows). There’s the untouchable saintly man who touches people and his uber-holy powers causes them to dance uncontrollably, gyrate on the floor, fall over, etc.
It’s ironic because some of these so-called ruqyas are inviting jinn to come in and harm you-- not to expel them. I am not convinced that one can become completely possessed in the sense of having no control over themselves because I have yet to see any evidence of such a case (in Qur’an and/or Ahadith). Black magic, the evil eye and jinn are real, though.