I came to Khabbab who had been branded with seven brands(1) and he said, "Had Messenger of Allah ﷺ not forbidden us to invoke (Allah) for death, I would have invoked (Allah) for it." (Using translation from Bukhārī 6349)
أَنَّ رَسُولَ اللهِ ﷺ «نَهَانَا أَنْ نَدْعُوَ بِالْمَوْتِ لَدَعَوْتُ بِهِ»