Valmiki Ramayana Ayodhya Kanda Sarga 39 Shloka 23
Original Shlokaन कुलं न कृतं विद्या न दत्तं नापि सङ्ग्रहः। स्त्रीणां गृह्णाति हृदयमनित्यहृदया हि ताः।।2.39.23।।
1 source checked for this shloka
स्त्रीणाम् women's, हृदयम् heart, कुलम् family tradition, न गृह्णाति does not attract, कृतम् benefit received, न not, विद्या education, दत्तम् gifts, न not, सङ्ग्रहः अपि not even accumulated wealth, न not, ताः those, अनित्यहृदयाः हि unstable minds indeed.
Neither family traditions nor benefits received, nor education nor affection nor gifts nor even accumulated wealth attract women's hearts. Their minds are unstable indeed.