Sunan an-Nasa'i #1818
The Book of Funerals 21:1
It was narrated from Abu Hurairah that the Messenger of Allah said:
"None of you should wish for death. Either he is a doer of good, so perhaps he may do more good, or he is an evildoer but perhaps he will give up his evil ways."