The Bible has a lot to say about righteousness by faith, including amongst others, Romans 3:21-22.
I'll admit that for years I struggled with sin, less so nowadays, mainly in my thought life. I was always baffled by 1 John 3:9, which stated that a believer cannot sin if he has been born again...