If machines produce everything we need, the outcome will depend on how things are distributed. Everyone can enjoy a life of luxurious leisure if the machine-produced wealth is shared, or most people can end up miserably poor if the machine-owners successfully lobby against wealth redistribution. So far, the trend seems to be toward the second option, with technology driving ever-increasing inequality.
Stephen Hawking, quoted in "Stephen Hawking Says We Should Really Be Scared Of Capitalism, Not Robots" Huffington Post, October 8, 2015.