Bhagavad Gita · 4.33
श्रेयान्द्रव्यमयाद्यज्ञाज्ज्ञानयज्ञः परन्तप।सर्वं कर्माखिलं पार्थ ज्ञाने परिसमाप्यते॥
śhreyān dravya-mayād yajñāj jñāna-yajñaḥ parantapa sarvaṁ karmākhilaṁ pārtha jñāne parisamāpyate
O scorcher of foes, the sacrifice of knowledge is superior to the sacrifice of material possessions. All actions in their entirety, O Partha, culminate in knowledge.
— Bhagavad Gita 4.33
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)