The Prophet ﷺ said, "A woman is married for her religion, her wealth, or her beauty. Choose the one of religion, may your hands be filled with dust."
حدثنا أحمد بن محمد بن موسى أخبرنا إسحق بن يوسف الأزرق أخبرنا عبد الملك بن أبي سليمان عن عطاء
أن النبي ﷺ قال إن المرأة تنكح على دينها ومالها وجمالها فعليك بذات الدين تربت يداك
Muslim also reported it, in the Book of Suckling, Chapter on the Recommendation of Marrying a Woman of Religion, hadith 715 onward, hadith 1466, from the narration of Abdul-Malik bin Abu Sulayman with the same wording.On this subject there are also narrations from Awf bin Malik [Bazzar (Kashf): 2/150, hadith 1404, in which Yazid bin Iyad appears], Ayesha [Ahmad: 6/152], Abdullah bin Amr [Ibn Majah, hadith 1859], and Abu Saeed [Ahmad: 3/80, and Ibn Hibban, hadith 1231, and Hakim: 2/161, who graded it sahih and Dhahabi agreed with him].