Bhagavad Gita 3.28

तत्त्ववित्तु महाबाहो गुणकर्मविभागयो: |
गुण गुणेषु वर्तन्त इति मत्वा न सज्जते

Translation

O mighty-armed Arjun, illumined persons distinguish the soul as distinct from guṇas and karmas. They perceive that it is only the guṇas (in the shape of the senses, mind, and others) that move among the guṇas (in the shape of the objects of perception), and thus they do not get entangled in them.