Jean-Jacques Rousseau said this quote

From this moment there would be no question of virtue or morality; for despotism cui ex honesto nulla est spes, wherever it prevails, admits no other master; it no sooner speaks than probity and duty lose their weight and blind obedience is the only virtue which slaves can still practice.