Proverbs 26:3 in the King James Version
A whip for the horse, a bridle for the ass, and a rod for the fool’s back.
Context
2 Like a fluttering sparrow, like a darting swallow, so the undeserved curse doesn’t come to rest.
3 A whip is for the horse, a bridle for the donkey, and a rod for the back of fools!
4 Don’t answer a fool according to his folly, lest you also be like him.