The works of Ādi Śaṅkarācārya

Viṣṇusahasranāmastotram

Verse 582

कषायपक्तिः कर्माणि ज्ञानं तु परमा गतिः ।कषाये कर्मभिः पक्वे ततो ज्ञानं प्रवर्तते ॥

In plain words

Works cook off the residue; knowledge is the destination. Once works have cooked that residue through, knowledge takes hold.

Close to the Sanskrit

Actions are the cooking of the astringent residue; knowledge, however, is the highest goal. When the residue has been cooked by actions, then knowledge sets in.