God encourages us towards confession and repentance of sin, through prayer, which brings forgiveness, security and joy.