Proverbs 18:13 in the King James Version
He that answereth a matter before he heareth it, it is folly and shame unto him.
Context
12 Before destruction the heart of man is proud, but before honor is humility.
13 He who answers before he hears, that is folly and shame to him.
14 A man’s spirit will sustain him in sickness, but a crushed spirit, who can bear?