Victor Hugo said this quote

The supreme happiness of life consists in the conviction that one is loved, loved for one's own sake-let us say rather in spite of one's self.