Allow me to expand. There are examples of pre-modern states ruled for the greater good. City states are surely a prime example. I wrote a book on one particular form, the Greek polis 1/
press.princeton.edu/books/hardco...
A definitive new history of the origins, evolution, and scope of the ancient Greek city-state