Bhagavad Gita 3.28
But he, O Mighty One, who correctly understands the relationship between the Qualities and action, is not attached to the act, for he perceives that it is merely the action and reaction of the Qualities among themselves.
तत्त्ववित्तु महाबाहो गुणकर्मविभागयोः।
गुणा गुणेषु वर्तन्त इति मत्वा न सज्जते॥tattvavittu mahābāho guṇakarmavibhāgayoḥ|
guṇā guṇeṣu vartanta iti matvā na sajjate||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).