It is a saying, or life advice perhaps. Not everyone is taught it. Where did it come from? The Bible? A philosopher? Literature? Does it have a canonical name?
According to a character in Frank Caceras, Bye the Book (2008), the expression is old:
There were several occasions when I suspected that Robert had been stealing from the company. There's an old saying that goes something like, 'Don't ask the question if you don't want to hear the answer.'
But finding old instances of the saying in print isn't easy. The earliest one that a Google Books search turns up appears in rhetorical interrogative form (without a question mark), from Edward Hegarty, Making What You Say Pay Off (1968) [combined snippets]:
- Listen to the Answer: Why ask the question if you did not want to hear the answer. Let the other know you heard his answer and show by your comments that you are interested.
An early instance of the expression framed as a rule appears in O'Neal Turner & John Pivovarnick, The Complete Idiot's Guide to Getting into College (1994) [combined snippets]:
Don't Ask Questions for the Sake of Asking Questions
By that I mean don't ask a question if you don't want to listen to the answer. Few things in this world are as frustrating to an interviewer as giving a thorough answer, only to find the student is paying no attention.
Nevertheless, the idea behind the saying is quite old. A relevant discussion appears in "Questions" in The Saturday Review of Politics (January 16, 1864):
There is a third habit of questioning much more common than either of the other two we have indicated, where the inquirer achieves all he aims at by putting an interruption in an interrogative form. Most persons known for asking questions never wait for an answer, and never want one. ... It is very rarely—only, we should say, in books composed in the form of dialogues—that information is ever imparted by the method of deliberate question and answer, for the reason that, in real life, the people who ask the most questions questions never listen to the answer. They ought to be made to do so if it were not so much trouble. The only weapon against the aggressive mode of questioning is to insist on your right of reply, in spite of the shifts, evasions, and writhings of the impatient questioner caught in the snare of his own setting.