The phrase summarizes the principles that, under a communist system, every person should contribute to society to the best of his ability and consume from society in proportion to his needs, regardless of how much he has contributed...
Although Marx is popularly thought of as the originator of the phrase, the slogan was common to the socialist movement and was first used by Louis Blanc in 1840