The Messenger of Allah صلى الله عليه وسلم was with his Sahabah (Companions) رضي الله عنه, when one of the rich Ansar passed by. The Prophet صلى الله عليه وسلم asked his Sahabah رضي الله عنه, "What do you think of this man?"
The Sahabah رضي الله عنه said, "He is an affluent and respected Ansari. He belongs to a very respected family. If he proposes to someone, his offer should be accepted. If he recommends someone his recommendation must be taken seriously."
The Messenger of Allah صلى الله عليه وسلم heard this and became silent. After a short while, a poor Muhajir passed by. Rasulullah صلى الله عليه وسلم asked the Sahabah رضي الله عنه, "What do you think of this person?"
The Sahabah رضي الله عنه replied, "He is one of the poorest immigrants. He does not come from a respectable family. If he proposes to someone, he should be turned down. His recommendations would not be acceptable to people."
Rasulullah صلى الله عليه وسلم looked at his Sahabah رضي الله عنه and then said, "If the world was full of men from affluent and respectable families like the one who came earlier, it would be better if there was one poor person like this Muhajir whom you despise."
[Source: Sahih al Bukhari and Sahih Muslim]