If we say that we haven't sinned, we make him a liar, and his word is not in us.
If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness ( 1 John 1:9 ).