From Sahih Muslim (Hadith 3635):
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:A woman may be married for four reasons: for her property, her status. her beauty and her religion, so try to get one who is religious, may your hand be besmeared with dust
Reference: Muslim 3635