What is the shelf life of Lyrica and M365?

While going through my medicine cabinet I found a bottle of Lyrica and a few M365 in it. They have been in my cabinet at least 3-4 months. I was prescribed the Lyrica for "phantom" pains I get sometimes. I have been an amputee for 47 years now. The Vicodin I took for some time prior to having my hip replaced. Anyway, my question is... is it safe to take either one of these? What is the shelf life for either of these? Thank you, dilyspr