One of the primary ways that we can progress in holiness is to be more intentional about avoiding sin. There are a number of tactics we can use to help us in the regard, such as praying each day for the grace to avoid that particular sin.
As the Divine Physician, God wants us to point out to him exactly what is hurting us, so that he can apply the remedy best suited for our specific wound.
If we truly want to heal from our sins and stop falling into bad habits, we need to be honest about what it is that is harming our soul.
Here is a prayer from the 19th-century Catholic Prayer Book and Manual of Meditations that asks for God's grace to avoid a specific sin.