Bhagavad Gita · Chapter 3: The Path of Action
Bhagavad Gita 3.34
इन्द्रियस्येन्द्रियस्यार्थे रागद्वेषौ व्यवस्थितौ ।
तयोर्न वशमागच्छेत्तौ ह्यस्य परिपन्थिनौ ॥
indriyasyendriyasyārthe rāgadveṣau vyavasthitau | tayorna vaśamāgacchettau hyasya paripanthinau ||
Attraction and aversion are fixed in each sense toward its object. One should not come under their power, for they are obstacles on one's path.
Modern context
Liking and disliking arise by themselves. Every sense has its pulls and its recoils, and no one chooses them. The verse does not ask us to stop having them. It asks us not to let them decide. Parippanthin means a robber who waits by the road: likes and dislikes ambush a journey that was going somewhere else. A good deal of maturity is the ability to do what is right when it is unpleasant, and to leave what is harmful when it is attractive.