(1) بَاب كَيْفِيَّةِ خَلْقِ الْآدَمِيِّ فِي بَطْنِ أُمِّهِ وَكِتَابَةِ رِزْقِهِ وَأَجَلِهِ وَعَمَلِهِ وَشَقَاوَتِهِ وَسَعَادَتِهِ
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.
Reference: Sahih Muslim 2651
In-book reference: Book 46, Hadith 18
USC-MSA web (English) reference(deprecated numbering scheme): Book 33, Hadith 6407