Sahl bin Saad reported,

The Messenger of Allah ﷺ said, "A man may appear to people to be doing the deeds of the people of Paradise, while in truth he is among the people of the Fire. And a man may appear to people to be doing the deeds of the people of the Fire, while in truth he is among the people of Paradise."

Azami 1043

Sahih

عن سهل بن سعد

أن رسول الله ﷺ قال: إن الرجل ليعمل عمل أهل الجنة، فيما يبدو للناس وهو من أهل النار، وإن الرجل ليعمل عمل أهل النار فيما يبدو للناس، وهو من أهل الجنة.

الأعظمي 1043صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Actions are judged by their endings
Numbering
Jami al-Kamil 1043 (2nd edition)
Azami 1043