Bhagavad Gita 7.17
Of all these, he who has gained wisdom, who meditates on Me without ceasing, devoting himself solely to Me, is the best; for I am exceedingly beloved by the wise man, and the wise man is also beloved by Me.
तेषां ज्ञानी नित्ययुक्त एकभक्ितर्विशिष्यते।
प्रियो हि ज्ञानिनोऽत्यर्थमहं स च मम प्रियः॥teṣāṃ jñānī nityayukta ekabhakitarviśiṣyate|
priyo hi jñānino'tyarthamahaṃ sa ca mama priyaḥ||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).