Psalm 51:17 - "The sacrifices of God are a broken spirit, a broken and a contrite heart— these, O God, You will not despise."
God despises sin and will not look upon it. When we try to hang on to our sin and still act religious, God will not hear us the prophets say. But when our hearts are broken, our spirits contrite over our sin, God does not despise. He deals with us kindly.