Bhagavad Gita · 18.10
न द्वेष्ट्यकुशलं कर्म कुशले नानुषज्जते।त्यागी सत्त्वसमाविष्टो मेधावी छिन्नसंशयः॥
na dveṣhṭy akuśhalaṁ karma kuśhale nānuṣhajjate tyāgī sattva-samāviṣhṭo medhāvī chhinna-saṁśhayaḥ
The wise renouncer, filled with sattva, whose doubts are cut away, neither hates disagreeable work nor is attached to agreeable work.
— Bhagavad Gita 18.10
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)