In the recent years, there has been a growing discussion on automation, more specifically, on how it will start replacing jobs and put people out of work. What never really seems to be stated in these discussions is that the notion that technology will lead to mass long term unemployment dates back a long way. In fact, Emperor Vespasian once refused to allow a more efficient way of transporting goods on the basis that it would put people out of work.
If this wikipedia article is to be trusted, the fear of technology replacing jobs led to authorities limiting innovation during the Renaissance.
Technological unemployment - Wikipedia
When the industrial revolution was in full swing, there were definitely people who believed that machines would eventually replace people's jobs. In fact, there was a group of textile workers called the luddites who destroyed textile machinery. They did this because the machines could be operated by people with less skill and could produce faster than any skilled worker by hand.
By the end of the 19th century, the fear of technological unemployment dissipated as the public saw that though many jobs were taken by the machines, new jobs were created to replace the old ones.
Many advocates of UBI will dismiss the history of technology not leading to mass unemployment, saying that it's different this time. What they fail to see is why it didn't happen in the past.
The law of economic scarcity states two things:
1. resources are limited
2. desires are unlimited
As long as the second point remains true, there will always be work for a man to do.
For most of human history, the vast majority of jobs involved making or gathering what was needed to survive (hunting, gathering fishing, and agriculture). During the industrial revolution, this changed as new machines and methods allowed for greater crop yields with less manpower. The additional manpower went on to other areas such as manufacturing. Since the 1980s, manufacturing jobs have been in decline. Despite this, manufacturing output in the US is at an all time high. In other words, though some jobs were lost to outsourcing, most were lost to automation.
Phenomenal Gains in Manufacturing Productivity
Today, the US (alongside most developed nations) has a primarily service based economy. Very few Americans are employed in agriculture.
Employment in Agriculture - Our World in Data