“Whoever is pleased with his good deeds, and saddened by his sins, is indeed a believer” ~ Ḥadīth.
Perfection isn’t possible, but we try. And if your good actions cause you to have hope, and your sins cause you sadness, that is a good sign, and it shows you have true faith.
Dr. Yasir Qadhi (Twitter)