That's black mirror level content.
"MORE" by Mark Osborne (1999) did it: https://www.youtube.com/watch?v=cCeeTfsm8bk
One of Jack Vance’s Dying Earth books features this as a whole chapter, the first of the Cugel books I believe. I don’t know of an earlier appearance of the concept.
"MORE" by Mark Osborne (1999) did it: https://www.youtube.com/watch?v=cCeeTfsm8bk