Daniel 9 is likely the best scriptural example of confession of sin that we can find. In this passage, we see both why we need to confess and a great example of how to do it.