The quote is attributed to Friedrich Engels, but it became widely known through Rosa Luxemburg's Junius Pamphlet of 1916.