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. (Using translation from Muslim 2204)
عَنِ النَّبِيِّ ﷺ أَنَّهُ قَالَ لِكُلِّ دَاءٍ دَوَاءٌ فَإِذَا أَصَبْتَ دَوَاءَ الدَّاءِ بَرَأَ بِإِذْنِ اللهِ تَعَالَى