The Book of Zuhd and Softening of Hearts
Ṣaḥīḥ Muslim 7485
كُلُّ أُمَّتِي مُعَافَاةٌ إِلاَّ الْمُجَاهِرِينَ وَإِنَّ مِنَ الإِجْهَارِ أَنْ يَعْمَلَ الْعَبْدُ بِاللَّيْلِ عَمَلاً ثُمَّ يُصْبِحُ قَدْ سَتَرَهُ رَبُّهُ فَيَقُولُ يَا فُلاَنُ قَدْ عَمِلْتُ الْبَارِحَةَ كَذَا وَكَذَا وَقَدْ بَاتَ يَسْتُرُهُ رَبُّهُ فَيَبِيتُ يَسْتُرُهُ رَبُّهُ وَيُصْبِحُ يَكْشِفُ سِتْرَ اللَّهِ عَنْهُ
kullu ummatī muʿāfātun illā al-mujāhirīna wa-inna mina al-ijhāri an yaʿmala al-ʿabdu bi-l-layli ʿamalan thumma yuṣbiḥu qad satarah rabbuhu fayaqūlu yā fulānu qad ʿamiltu al-bāriḥaha kadhā wakadhā waqad bāta yasturuhu rabbuhu fayabītu yasturuhu rabbuhu wayuṣbiḥu yakshifu sitra-Llāh ʿanhu
Transliteration generated from the Arabic vowel marks
The full narration
Abu Huraira reported Allah's Messenger (ﷺ) as saying:All the people of my Ummah would get pardon for their sins except those who publicise them. And (it means) that a servant should do a deed during the night and tell the people in the morning that he has done so and so, whereas Allah has concealed it. And he does a deed during the day and when it is night he tells the people, whereas Allah has concealed it. Zuhair has used the word hijar for publicising
Source
Ṣaḥīḥ Muslim · 7485