Proverbs 20:30

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