Bhagavad Gita · 12.6
ये तु सर्वाणि कर्माणि मयि सन्न्यस्य मत्पराः।अनन्येनैव योगेन मां ध्यायन्त उपासते॥
ye tu sarvāṇi karmāṇi mayi sannyasya mat-parāḥ ananyenaiva yogena māṁ dhyāyanta upāsate
But those who surrender all their actions to me, who regard me as the supreme goal, who worship me through exclusive devotion, and who meditate on me —
— Bhagavad Gita 12.6
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)