My doctor told me many years ago that nearly all drugs were equally potent five years past their expiration date. And then I asked him specifically about my wife’s medications and mine and he told me they were good “indefinitely.”
I don't have a problem with keeping left over pain pills from a legitimate prescription for an emergency. I think it would be good for preppers to save any pain pills.