Immanuel Kant said this quote

As nature has uncovered from under this hard shell the seed for which she most tenderly cares - the propensity and vocation to free thinking - this gradually works back upon the character of the people, who thereby gradually become capable of managing freedom; finally, it affects the principles of government, which finds it to its advantage to treat men, who are now more than machines, in accordance with their dignity.