From Sahih Muslim (Hadith 5741):
Jabir reported Allah's Messenger (ﷺ) as saying:There is a remedy for every malady, and when the remedy is applied to the disease it is cured with the permission of Allah, the Exalted and Glorious
Reference: Muslim 5741