 From Narcotics Anonymous circa 1980; in print in an 1981 "approval version" of the Narcotics Anonymous "Basic Text" – see that page for details. This and variations on it have also been variously attributed to Benjamin Franklin, Albert Einstein, Rita Mae Brown, and an old Chinese proverb, but this is the earliest known appearance and probable origin.