Henry David Thoreau (2014). “Citizen Thoreau: Walden, Civil Disobedience, Life Without Principle, Slavery in Massachusetts, A Plea for Captain John Brown”, p.133, Graphic Arts Books
1973 Lecture. The phrase is thought to have been coined anonymously, perhaps referring to the 19c US tradition of supplying food in bars to patrons buying drinks.