The Prophet (ﷺ) as saying: No one of you should wish for death. He then mentioned the rest of the tradition in a similar manner.
Sunan Abi Dawud Book 21, Hadith 21