He didn't say that, exactly... He said something kinda similar in idea.
https://checkyourfact.com/2019/11/29/fact-check-karl-marx-capitalist-hang-sold-rope-quote/
So, on that note of you feeling some sort of superiority, because you think you know for a fact, the source is a Reich Winger, when the "source" is working class zeitgeist.
Much like how no one person came up with the "When fascism comes to America it will be wrapped in the flag and waving a cross." line, or "And those who were seen dancing were thought to be insane by those who could not hear the music."
All of those were created via a game of "telephone", and modified to their current form by the zeitgeist of the working class.
If we don't riot, we're likely to lose our jobs, our healthcare, and our homes.