It is narrated from Sayyiduna Uthman bin Affan (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "When the Muslim servant reaches the age of fifty, Allah Almighty lightens his reckoning; when he reaches sixty, Allah Almighty grants him the blessing of turning and returning to Him in repentance; when he reaches seventy, the dwellers of the heaven come to love him; then when he reaches eighty, Allah Almighty makes his good deeds firm and erases his bad deeds; then when he reaches ninety, Allah Almighty forgives all his past and later sins, makes him an intercessor for his household, and it is written about him in the heaven: 'He is the captive of Allah on the earth.'"
Abu Ya'la al-Mawsili recorded it, and several hadith of this kind have already come in (the book of) virtues (al-Manaqib), in the chapter on the one who is granted long life in Islam.