Bhagavad Gita 2.61
Chapter 2: The yoga of knowledge
तानि सर्वाणि संयम्य युक्त आसीत मत्परः ।
वशे हि यस्येन्द्रियाणि तस्य प्रज्ञा प्रतिष्ठिता ॥ ६१ ॥
Having restrained them all, he should sit harmonised, I his supreme goal; for, whose senses are mastered, of him the understanding is well poised.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.