Srimad Bhagavatam Canto 11, Chapter 20, Text 20

SB 11.20.20

mano-gatim na visrjej
 jita-prano jitendriyah
sattva-sampannaya buddhya
 mana atma-vasam nayet
 
Translation: 
 
One should never lose sight of the actual goal of mental activities, but rather, conquering the life air and senses and utilizing intelligence strengthened by the mode of goodness, one should bring the mind under the control of the self.
 
Purport: 
 
Although the mind may suddenly wander outside the jurisdiction of self-realization, one must bring the mind back under control by clear intelligence in the mode of goodness. The best solution is to keep the mind always busy in the service of Lord Krsna so that the mind cannot wander onto the dangerous path of sense gratification, headed by sex attraction. The material mind is naturally inclined to accept material objects at every moment. Therefore unless the mind is seriously brought under control there is no possibility of becoming steady on the path of spiritual advancement.
Srimad Bhagavatam Canto 11, Chapter 20, Text 19
Srimad Bhagavatam Canto 11, Chapter 20, Text 21