This is Marx himself saying it,
My dialectic method is not only different from the Hegelian, but is its direct opposite. To Hegel, the life-process of the human brain, i.e., the process of thinking, which, under the name of “the Idea,” he even transforms into an independent subject, is the demiurgos of the real world, and the real world is only the external, phenomenal form of “the Idea.” With me, on the contrary, the ideal is nothing else than the material world reflected by the human mind, and translated into forms of thought... The mystification which dialectic suffers in Hegel’s hands, by no means prevents him from being the first to present its general form of working in a comprehensive and conscious manner. With him it is standing on its head. It must be turned right side up again, if you would discover the rational kernel within the mystical shell.
Capital Vol. I : 1873 Afterword
www.marxists.org