Abu Huraira reported God’s Messenger as saying, “A woman may be married for four reasons, for her property, her rank, her beauty and her religion; so get the one who is religious and prosper.”*
(Bukhari and Muslim.)
* Taribat yadaka literally, "may your hands cleave to the dust". It is explained as being used to encourage one to action, and so it has been translated above by "prosper.”