Are you sure it wasn't in Marxist writings and literature to abolish religion, as it worship of a deity interferes with the worship of the state?
Yes, I'm sure that wasn't it. At least not entirely. You may have forgotten that our founders rebelled against a theocratic regime.
Marx:
The foundation of irreligious criticism is: Man makes religion, religion does not make man. Religion is, indeed, the self-consciousness and self-esteem of man who has either not yet won through to himself, or has already lost himself again. But man is no abstract being squatting outside the world. Man is the world of man state, society. This state and this society produce religion, which is an inverted consciousness of the world, because they are an inverted world. Religion is the general theory of this world, its encyclopaedic compendium, its logic in popular form, its spiritual point dhonneur, its enthusiasm, its moral sanction, its solemn complement, and its universal basis of consolation and justification. It is the fantastic realization of the human essence since the human essence has not acquired any true reality. The struggle against religion is, therefore, indirectly the struggle against that world whose spiritual aroma is religion.
Religious suffering is, at one and the same time, the expression of real suffering and a protest against real suffering. Religion is the sigh of the oppressed creature, the heart of a heartless world, and the soul of soulless conditions. It is the opium of the people.
The abolition of religion as the illusory happiness of the people is the demand for their real happiness. To call on them to give up their illusions about their condition is to call on them to give up a condition that requires illusions. The criticism of religion is, therefore, in embryo, the criticism of that vale of tears of which religion is the halo.
Lenin:
So far as the party of the socialist proletariat is concerned, religion is not a private affair. Our Party is an association of class-conscious, advanced fighters for the emancipation of the working class. Such an association cannot and must not be indifferent to lack of class-consciousness, ignorance or obscurantism in the shape of religious beliefs. We demand complete disestablishment of the Church so as to be able to combat the religious fog with purely ideo logical and solely ideological weapons, by means of our press and by word of mouth. But we founded our association, the Russian Social-Democratic Labour Party, precisely for such a struggle against every religious bamboozling of the workers. And to us the ideological struggle is not a private affair, but the affair of the whole Party, of the whole proletariat.
Kinda looks like you're wrong.