Proverbs 26:5 in the King James Version
Answer a fool according to his folly, lest he be wise in his own conceit.
Context
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.
6 One who sends a message by the hand of a fool is cutting off feet and drinking violence.