Do not wish for death.
If you are a good-doer,
your goodness will be added
to your goodness and it will be
good for you. If you are an evil-doer,
you will be given time to make amends
for your evil and it will be good for you.

Source: Musnad Aḥmad 26874