Sahih Bukhari Volume 008, Book 073, Hadith Number 095.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 73. Good Manners and Form (Al-Adab)
Narated By Abu Huraira : I heard Allah's Apostle saying. "All the sins of my followers will be forgiven except those of the Mujahirin (those who commit a sin openly or disclose their sins to the people). An example of such disclosure is that a person commits a sin at night and though Allah screens it from the public, then he comes in the morning, and says, 'O so-and-so, I did such-and-such (evil) deed yesterday,' though he spent his night screened by his Lord (none knowing about his sin) and in the morning he removes Allah's screen from himself."