Better are the wounds of a friend, etc. It is better to endure wounds and affliction from the Lord, who as a father instructs us as children, than to be deceived by the flattery of the devil, who, to deprive us of our heavenly inheritance, is accustomed to favor our errors, as if what we do is a light evil, and the tribulation we endure beyond the measure of our sins is inflicted by the Lord's discretion.
Source: Commentary on Proverbs