Saint Bernard said this quote

Sorrow for sin is indeed necessary, but it should not be an endless preoccupation. You must dwell also on the glad remembrance of God's loving-kindness; otherwise, sadness will harden the heart and lead it more deeply into despair.