Epictetus said this quote

Do you know that disease and death must needs overtake us no matter what we are doing? ... What do you wish to be doing when it overtakes you? If you have anything better to be doing when you are so overtaken get to work on that.