Bhagavad Gita · 14.19
नान्यं गुणेभ्यः कर्तारं यदा द्रष्टानुपश्यति।गुणेभ्यश्च परं वेत्ति मद्भावं सोऽधिगच्छति॥
nānyaṁ guṇebhyaḥ kartāraṁ yadā draṣhṭānupaśhyati guṇebhyaśh cha paraṁ vetti mad-bhāvaṁ so 'dhigachchhati
When the seer perceives no doer other than the gunas and knows that which is beyond the gunas, that person attains my divine nature.
— Bhagavad Gita 14.19
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)