Proverbs 20:30

The bruise of a wound, as well as scourges, shall wipe away evils in the more secret places of the inner self

Other versions

King James Version

The blueness of a wound cleanseth away evil: so do stripes the inward parts of the belly.

English Standard Version

Blows that wound cleanse away evil; strokes make clean the innermost parts.

New International Version

Blows and wounds cleanse away evil, and beatings purge the inmost being.