Messenger of Allah ﷺ used to treat with a Ruqya saying, "O the Lord of the people! Remove the trouble The cure is in Your Hands, and there is none except You who can remove it (the disease) . " (Using translation from Bukhārī 5744)
أَنَّ النَّبِيَّ ﷺ كَانَ يَرْقِي يَقُولُ «امْسَحِ الْبَأْسَ رَبَّ النَّاسِ لَا كَاشِفَ إِلَّا أَنْتَ»