James 5 NIV

Therefore confess your sins to each other and pray for each other so that you may be healed. The prayer of a righteous person is powerful and effective.

1 John 1:9 NIV

If we confess our sins, he is faithful and just and will forgive us our sins and purify us from all unrighteousness.