It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not wish for death, for the scenes and terrors that one will face (at death) are very severe; and the good fortune of a servant is that he is granted a long life and that Allah Almighty blesses him with the ability to repent and turn (to Him)."
Abu Bakr bin Abi Shaybah, Ahmad bin Mani', Abd bin Humayd, Abu Ya'la al-Mawsili, Ahmad bin Hanbal and al-Bayhaqi recorded it, while Imam al-Hakim declared it sahih.