Sunan Abi Dawud, Book 29, Hadith 20 (Abu Dawud 3875)

Narrated Abu al-Darda:

The Prophet (ﷺ) said: Allah has sent down both the disease and the cure, and He has appointed a cure for every disease, so treat yourselves medically, but use nothing unlawful.