Sahih Muslim · Hadith 6910
The Book of Destiny - كتاب القدر
حدثنا قتيبة بن سعيد، حدثنا عبد العزيز، - يعني ابن محمد - عن العلاء، عن أبيه، عن أبي هريرة، أن رسول الله صلى الله عليه وسلم قال " إن الرجل ليعمل الزمن الطويل بعمل أهل الجنة ثم يختم له عمله بعمل أهل النار وإن الرجل ليعمل الزمن الطويل بعمل أهل النار ثم يختم له عمله بعمل أهل الجنة " .
Abu Huraira reported Allah's Messenger (way peace be upon him) as saying: Verily, a person performs deeds for a long time like the deeds of the people of Paradise. Then his deeds are terminated like the deeds of the people of Hell and, verily, a person performs deeds like the denizens of Fire for a long time, and then this deed of his is ultimately followed by the deeds of the people of Paradise.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).