Al-Hasan Al-Basri (may Allah have mercy upon him) said:
“Almighty Allah has not set a deadline for a believer’s having to do good deeds, except death.”
Then he recited Almighty Allah’s words: And serve thy Lord till the inevitable (death) cometh unto thee (Al-Hijr 15:99)