The Messenger of Allah ﷺ said, "A man may perform the deeds of the people of Hell while he is in fact among the people of Paradise, and a man may perform the deeds of the people of Paradise while he is in fact among the people of Hell. Deeds are judged only by their endings."
حدثنا يزيد حدثنا أبو غسان محمد بن مطرف عن أبي حازم
قال رسول الله ﷺ إن الرجل ليعمل بعمل أهل النار وإنه لمن أهل الجنة وإن الرجل ليعمل بعمل أهل الجنة وإنه لمن أهل النار وإنما الأعمال بالخواتيم