Called "Baruch's Observation" in The Complete Murphy's Law : A Definitive Collection (1991) by Arthur Bloch, such statements have also attributed to, Michael Polanyi, and Mark Twain; see the Wiktionary page for this statement for more details.
Abraham Maslow, The Psychology of Science : A Reconnaissance (1966), Ch. 2, p. 15.
I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.
More quotes by Bernard Baruch
Those who matter don't mind, and those who mind don't matter.
Peace can be made tranquil and secure only by understanding and agreement fortified by sanctions.
Attribution
Quote text and notes from Wikiquote: Bernard Baruch (page history), available under CC BY-SA 4.0. Source quality and labels are our own summary of what Wikiquote records.