Niccolò Machiavelli said this quote

To understand the nature of the people one must be a prince, and to understand the nature of the prince, one must be of the people