Sunan Ibn Majah, Book 9, Hadith 1931 (In-Book) ⓘ
It was narrated from Abu Hurairah that: the Prophet said: “A woman may be married for four things: Her wealth, her lineage, her beauty or for her religion. Choose the religious, may your hands be rubbed with dust (i.e., may you prosper).”
حَدَّثَنَا يَحْيَى بْنُ حَكِيمٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنْ عُبَيْدِ اللَّهِ بْنِ عُمَرَ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " تُنْكَحُ النِّسَاءُ لأَرْبَعٍ لِمَالِهَا وَلِحَسَبِهَا وَلِجَمَالِهَا وَلِدِينِهَا . فَاظْفَرْ بِذَاتِ الدِّينِ تَرِبَتْ يَدَاكَ " .
also referenced under: Hadith 1858 (Reference) & Volume 3, Book 9, Hadith 1858 (DarusSalam)