you might be thinking of the Stalin quote about the Emir of Afghanistan -
"The struggle that the Emir of Afghanistan is waging for the independence of Afghanistan is objectively a revolutionary struggle, despite the monarchist views of the Emir and his associates, for it weakens, disintegrates and undermines imperialism; whereas the struggle waged by such "desperate" democrats and "Socialists," "revolutionaries" and republicans as, for example, Kerensky and Tsereteli, Renaudel and Scheidemann, Chernov and Dan, Henderson and Clynes, during the imperialist war was a reactionary struggle, for its results was the embellishment, the strengthening, the victory, of imperialism. "
- STALIN in "Foundations of Leninism" https://www.marxists.org/reference/archive/stalin/works/1924/foundations-leninism/ch06.htm