Book V of the Wealth of Nations has a long passage about the ill effects of the division of labor (or more specifically, of the constant repetition of simple tasks) on the workers.
Here: https://www.marxists.org/reference/archive/smith-adam/works/... (search for "In the progress of the division of labour")