Honesty is also good with rich people; corruption is also bad with poor people. So the main thing is not being poor or rich, but being honest or corrupted.
I don't think that all rich people are corrupted, or all poor people are honest. Rich people who are ready to give all are more praiseworthy than poor people who attach firmly to their rags.