Immanuel Kant said this quote

It is not God's will merely that we should be happy, but that we should make ourselves happy.