The story
The origin is unknown; in use since the mid-20th century. Although the phrase is sometimes attributed to Benjamin Franklin, the earliest documented usage is from Tom Lehrer's 1953 novelty song "The Old Dope Peddler."
Etymology from Wiktionary, CC BY-SA 4.0.