Al-Hasan (may Allah have mercy on him) narrates from Sayyiduna Abu Bakrah (may Allah be pleased with him) that a man said: O Messenger of Allah, which people are best? He (peace and blessings be upon him) said: "The one whose life is long and whose deeds are good." Then it was said to him (peace and blessings be upon him): Which people are worst? He (peace and blessings be upon him) said: "The one whose life is long and whose deeds are bad."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6525