Samuel Butler said this quote

People are lucky and unlucky ... according to the ratio between what they get and what they have been led to expect.