Whoever conceals his transgressions will not prosper, but he who confesses and forsakes them will obtain mercy. Blessed is the one who fears the LORD always, but whoever hardens his heart will fall into calamity.
I acknowledged my sin to you, and I did not cover my iniquity; I said, “I will confess my transgressions to the LORD,” and you forgave the iniquity of my sin. Selah
Therefore, confess your sins to one another and pray for one another, that you may be healed. The prayer of a righteous person has great power as it is working. (ESV)