I believe we have yet to fully appreciate the ability of a developed economy to produce jobs and work for people to do. Even if we automate the entirety of the food production, mining and energy generation industries, new forms of work will spring up to absorb anyone that may have been displaced by automation.
Whenever some work is automated, people insert themselves on top of that layer of production to form a new layer. This process continues ad infinitum. At least that's been the case for the entire history of organized human society.
If machines are doing everything, and I’m not taking resources away from anyone else, why should I work?
It's easy to just say machines will take care of everything. That is a long stretch from it actually happening and I think there are many fundamental problems you'd encounter trying to achieve that. Just looking for books, novels, whatever that might explore the idea a lot further.