Kindly refer to the following link(s):
Why is it a Sin to expose one's sins & bad deeds?
Should we tell our Spouse about our past sins?
Suitor asking her if she is a virgin, what to do?
If someone is asking me about my past sins, should I lie or expose my sins?
Can I reveal my sin in order to console or guide someone suffering from the same sin?
All from my Ummah will be forgiven except those who boast about sins' Does Allah not forgive shirk
My Ummah will be forgiven except those who boast their sins, include major sinners who don't repent?
Also see: Do we have to confess to people if we have wronged them? -