WOOL-Gathering,
as, Your Wits are a Wool gathering; said of a Person in a serious, or, as 'tis called, in a brown Study; or who knows not what he does.
Wool Gathering in the 1811 Vulgar Tongue
Also see examples in Canting Songs and Slang Rhymes collected by John S. Farmer (1896).