Krishna in baghavad gita
One who restrains his senses, keeping them under control, and fixes his consciousness upon me, is known as a man of steady intelligence.
While contemplating the objects of senses, a person develops attachment for them, and from such attachment lust develops, and from lust anger arises.
From anger, complete delusion arises, and from delusion bewilderment of memory. When memory is bewildered, intelligence is lost, and when intelligence is lost one fall down again into this material pool.
But a person free from all attachments and aversions and able to control his senses through regulative principles of freedom can obtain the complete mercy of the lord.