In the form of willow bark, yes, there was. Salicylic acid, the primary compound in aspirin, is also found in willow bark, which has been used therapeutically for 3500+ years.
https://onlinelibrary.wiley.com/doi/full/10.1111/bjh.14520?sid=nlm%3Apubmed
It's from Morrowind, released 2002.