In one of the Buddhist texts it is recorded that someone asked Buddha:
Why are some women ugly but rich?
Why are some women beautiful but poor?
Why are some people poor but with good health and a long life?
Why are some rich yet ill and short-lived?
The Buddha's answers were:
One who is ugly but rich was short-tempered in past lives easily irritated and angered but was also very generous and gave offerings to the Buddha, Dharma, and Sangha and made contributions to many sentient beings.
One who is beautiful but poor was, in past lives, very kind, always smiling and soft spoken, but was stingy and reluctant to make offerings or help other people.
The person who is poor but in good health and enjoying a long life was, in his or her past lives, very stingy or reluctant to make donations, but was kind to all sentient beings, did not harm or kill others, and also saved many sentient beings lives.
The person who is rich but often ill, or who is short-lived, was, in his or her past lives, very generous in helping others but loved hunting and killing and caused sentient beings to feel worried, insecure, and frightened.
Extracted from The Truth of Karma lectures.