Sayyiduna al-'Urs bin Amirah (may Allah be pleased with him), who was one of the Companions of the Prophet (peace and blessings be upon him), said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "Indeed, a man does the deeds of the people of Hell for a period of his life, then one of the paths of Paradise appears before him, and he acts upon it until he dies upon it; and that is in accordance with what has been written for him. And indeed, a man does the deeds of the people of Paradise for a period of his life, then one of the paths of Hell appears before him, and he acts upon it until he dies upon it; and that too is in accordance with what has been written for him."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14412