Yahyâ b. Yahyâ Al-NaysâbûrÎ reports:

I was once with Sufyân b. ‘Uyainah – Allah have mercy on him, when a man came to him and said, “O Abû Muhammad, I complain to you of so-and-so”, meaning his wife, “I am the lowest and most despicable thing to her.” [Sufyân] lowered his head for a few moments, then said, “Perhaps you wanted her in order to better your status.” The man said, “Indeed, o Abû Muhammad.” Sufyân said, “Whoever goes for glory will be tried with ignominy, whoever goes for wealth will be tried with poverty, but whoever goes for religiousness, Allah will bring together for him glory and wealth with the religion.” He then started to narrate to him:

We were four brothers: Muhammad, ‘Umrân, IbrâhÎm and I. Muhammad was the eldest, ‘Umrân was the youngest, and I was in the middle. When Muhammad wanted to marry, he desired status and married a woman of higher standing, so Allah tried him with ignominy. ‘Umrân desired wealth, so he married a richer woman and Allah tried him with poverty: [her family] took everything from him and gave him nothing.

I pondered their situation. Mu’ammar b. Râshid once came to us so I consulted him on the situation and told him the story of my brothers. He reminded me of the hadÎth of Yahyâ b. Ja’dah and the hadÎth of ‘Â`ishah. The hadÎth of Yahyâ b. Ja’dah states that the Prophet – Allah’s peace and blessings be upon him – said, “A woman is married for four things: her religion, her status (lineage), her wealth or her beauty; so take the religious one and be successful.” The hadÎth of ‘Â`ishah states that the Prophet – Allah’s peace and blessings be upon him – said, “The most blessed woman is she who is easiest to maintain.”

Thus, I chose [to marry a woman of] religion and modest dowry, in accordance with the Sunnah of Allah’s Messenger – Allah’s peace and blessings be upon him, and Allah gave me status and wealth along with the religion.

Abû Nu’aym, Hilyatu Al-Awliyâ` 7:289, 290.

Note
The first hadÎth is recorded by Al-BukhârÎ and Muslim. The second is found in Al-Nasâ`Î and other collections but has been graded weak by scholars including Shaykh Al-AlbânÎ. However, scholars point out there is another narration that supports and adds to its meaning. This hadÎth states:
It is from the blessing in a woman that she has an easy dowry, an easy proposal [via her guardian] and an easy womb (i.e. she is fertile and bares children without difficulty). One of the reporters of this narration, ‘Urwah, said “And I say from myself, one of the first signs of evil from a woman is for her to have a high dowry.”
This hadÎth is recorded by Imâm Ahmad and others and is graded hasan by Shaykh Al-AlbânÎ.