Sayyiduna Abu al-Darda' (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Allah has sent down both the remedy and the disease, and for every disease there is a remedy. So seek treatment, but avoid treating yourselves with what is unlawful."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19681