Pass the hat around
To collect money, dates from the late 19th century. For a long time before this, hats were invariably used for impromptu collections of money.