Proverbs 26:4 in the King James Version
Answer not a fool according to his folly, lest thou also be like unto him.
Context
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.
5 Answer a fool according to his folly, lest he be wise in his own eyes.