Abu Hurairah reported,

I heard the Messenger of Allah ﷺ say, "All of my nation will be forgiven except those who flaunt their sins. Part of flaunting sin is that a man commits an act by night, and when morning comes, though Allah has concealed it for him, he says, 'So-and-so, last night I did such and such.' He spent the night with his Lord covering him, and he wakes up tearing away the covering Allah had placed over him."

Azami 13956

Sahih

عن أبي هريرة، يقول

سمعت رسول الله ﷺ يقول: كل أمتي معافى إلا المجاهرين، وإن من المجاهرة أن يعمل الرجل بالليل عملا، ثم يصبح وقد ستره الله عليه، فيقول: يا فلان، عملت البارحة كذا وكذا، وقد بات يستره ربه، ويصبح يكشف ستر الله عنه.

الأعظمي 13956صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
Concealment of the believer upon himself
Numbering
Jami al-Kamil 13956 (2nd edition)