Saint Bernard said this quote

God removes the sin of the one who makes humble confession, and thereby the devil loses the sovereignty he had gained over the human heart.