The Messenger of Allah (ﷺ) was asked about a charm for one who is possessed (nashrah). He replied: It pertains to the work of the devil.
Sunan Abi Dawud Book 29, Hadith 14