Proverbs 26:4

Amplified Bible (AMP)

Do not answer [nor pretend to agree with the frivolous comments of] a [closed-minded] fool according to his folly,
Otherwise you, even you, will be like him.

Read Proverbs 26:4 in other translations