السلام عليكم ورحمة الله وبركاته
One should not mention what kind of sins he/she has or had..
The Prophet Salla Allahu Alahi Wasallam said:
Everyone of my nation is excused except from those that announce themselves. Announcing oneself includes when a person does an actions at night, then wakes up in the morning, after God had covered him, saying “Hey so and so, last night I did such and such”. He had spent the night under the cover of God, yet he awakes the next morning to remove the cover that God had given him.
This hadith was narrated by al-Bukhari in the Sahih, as well as Muslim from Abu Hurayrah, and there are other narrations with the same of similar wording found in al-Tabarani from Abu Qatadah.
His statement “Everyone of my nation is excused except from those that announce themselves” when analyzed in the original Arabic, relates an added meaning to the translation. This meaning is “Every member of my nation is excused from their sins, except those that announce them, for they will not be excuse from them…” this is, in summary, what ibn Hajar says about the meaning of this hadith.
Al-Nawawi said about this hadith:
“The people referred to in this hadith are those that even though they did not openly commit sins, they then proceed to announce to others the things that they’ve done for no reason or necessity.”