Sunan an-Nasa'i, Book 26, Hadith 35 (In-Book)

Narrated Abu Hurairah: It was narrated from Abu Hurairah that the Prophet said: "Women are married for four things: their wealth, their nobility, their beauty and their religious commitment. Choose the one who is religiously committed, may your hands be rubbed with dust."

أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ تُنْكَحُ النِّسَاءُ لأَرْبَعَةٍ لِمَالِهَا وَلِحَسَبِهَا وَلِجَمَالِهَا وَلِدِينِهَا فَاظْفَرْ بِذَاتِ الدِّينِ تَرِبَتْ يَدَاكَ ‏" ‏ ‏.‏

sunnah.com