Proverbs 21:23 in the King James Version
Whoso keepeth his mouth and his tongue keepeth his soul from troubles.
Context
22 A wise man scales the city of the mighty, and brings down the strength of its confidence.
23 Whoever guards his mouth and his tongue keeps his soul from troubles.
24 The proud and arrogant man—“Scoffer” is his name— he works in the arrogance of pride.