Jami` at-Tirmidhi, Book 36, Hadith 27 (Tirmidhi 2399)

'Abdur-Rahman bin Abi-Bakrah narrated from his father that a man said:

"O Messenger of Allah! Which of the people is the best?" He said: "He whose life is long and his deeds are good." He said: "Then which of the people is the worst?" He said: "He whose life is long and his deeds are bad."