That idea, that work sets value, was standard economics in 1867. Within a few years Jevons, Menger, and Walras explained prices by how much people value one more unit of a thing, and most economists still do. Read the labour idea as one way of seeing, not as today’s consensus.
From Das Kapital, Volume I by Karl Marx