What is the oldest work to have this trope?
This trope is prehistoric. TVTropes catalogues it as Who Wants To Live Forever?, from which I draw the following example.
Greek mythology held that Eos, the goddess of the dawn, once asked Zeus to make her mortal lover Tithonus, a mortal man, immortal, but Eos neglected to specify that he should remain eternally young as well. To Eos's regret, Tithonus grew older and older, shriveling away in his age; in some tellings, this ledcaused him to eventually turn into a cicada.
(TVTropes catalogues this trope as Who Wants To Live Forever?. I drew the preceding example from there.)