Yoga Sutras of Patanjali · 4.24
तदसंख्येयवासनाभिश्चित्रमपि परार्थं संहत्यकारित्वात्॥२४॥
tad asaṅkhyeyavāsanābhiś citram api parārthaṁ saṁhatyakāritvāt
Though variegated by innumerable vasanas, the mind exists for the sake of another — the purusha — because it acts in combination with other elements.
— Yoga Sutras of Patanjali 4.24
Source: Sanskrit attributed to Patanjali (c. 2nd century BCE – 4th century CE). Public-domain English readings drawn from Swami Vivekananda's 'Raja Yoga' (1896) and Charles Johnston's 'The Yoga Sutras of Patanjali' (1912).