Bhagavad Gita 6.26
यतो यतो निश्चरति मनश्चञ्चलमस्थिरम्।
ततस्ततो नियम्यैतदात्मन्येव वशं नयेत्।।6.26।।
Yato yato nishcharati manashchanchalamasthiram
Tatastato niyamyaitadatmanyeva vasham nayet
Simple meaning, written by AIWherever the restless and unsteady mind wanders, one should restrain it and bring it under the control of the self alone.