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 15020

Sahih

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

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

الأعظمي 15020صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Vices of character
Section
Warning against openly committing sin
Numbering
Jami al-Kamil 15020 (2nd edition)
Azami 15020