Bhagavad Gita 6.24

Chapter 6: Meditation

सङ्कल्पप्रभावान्कामांस्त्यक्त्वा सर्वानशेषतः ।
मनसैवेन्द्रियग्रामं विनियम्य समन्ततः ॥ २४ ॥

Abandoning without reserve all desires born of the imagination, by the mind curbing in the aggregate of the senses on every side,

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.