Bhagavad Gita · 14.23
उदासीनवदासीनो गुणैर्यो न विचाल्यते।गुणा वर्तन्त इत्येव योऽवतिष्ठति नेङ्गते॥
udāsīna-vad āsīno guṇair yo na vichālyate guṇā vartanta ity evaṁ yo 'vatiṣhṭhati neṅgate
One who sits as if neutral, undisturbed by the gunas, who knows that the gunas alone act, and remains steady without wavering.
— Bhagavad Gita 14.23
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)