Proverbs 19:25

25 Flog a scoffer, and the simple will learn prudence;  Rebuke one who has understanding, and he will gain knowledge.