8 “Sweet is the Lord to all, and His compassions are over all His works.” Why then does He condemn? Why does He scourge? Are not they whom He condemns, whom He scourges, His works? Plainly they are. And will you know how “His compassions are over all His works”? Thence is that long-suffering, whereby “He makes His sun to rise on the evil and on the good.” Are not “His compassions over all His works, who sends rain upon the just and upon the unjust”? In His long-suffering He waits for the sinner, saying, “Turn ye to Me, and I will turn to you.” Are not “His compassions over all His works”? And when He says, “Go ye into everlasting fire, prepared for the devil and his angels,” this is not His compassion, but His severity. His compassion is given to His works: His severity is not over His works, but over your works. Lastly, if you remove your own evil works, and there remain in you nought but His work, His compassion will not leave you: but if you leave not your works, there will be severity over your works, not over His works.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)