Sahih al-Bukhari, Book 67, Hadith 28 (Bukhari 4886)
Narrated Abu Huraira:
The Prophet (ﷺ) said, "A woman is married for four things, i.e., her wealth, her family status, her beauty and her religion. So you should marry the religious woman (otherwise) you will be a losers.