TABARANI 5799:
from Sahl b. Saʿd —
[Machine] The Messenger of Allah ﷺ said, "Verily, a person may do actions that appear to people as the actions of the people of Paradise, while in reality, he is from the people of Hell. And indeed, a person may do actions that appear to people as the actions of the people of Hell, while in reality, he is from the people of Paradise. Indeed, actions are judged by their endings."
الطبراني ٥٧٩٩:
عن سهل بن سعد —
قَالَ رَسُولُ اللهِ ﷺ «إِنَّ الرَّجُلَ لَيَعْمَلُ فِيمَا يَرَى النَّاسُ بِعَمَلِ أَهْلِ الْجَنَّةِ وَإِنَّهُ مِنْ أَهْلِ النَّارِ وَإِنَّهُ لَيَعْمَلُ فِيمَا يَرَى النَّاسُ بِعَمَلِ أَهْلِ النَّارِ وَإِنَّهُ مِنْ أَهْلِ الْجَنَّةِ وإِنَّمَا الْأَعْمَالُ بِالْخَوَاتِيمِ»
hadithunlocked.com