Bhagwad Gita
Chapter 4, Verse 33
श्रेयान्द्रव्यमयाद्यज्ञाज्ज्ञानयज्ञः परन्तप।
सर्वं कर्माखिलं पार्थ ज्ञाने परिसमाप्यते।।4.33।।
The sacrifice of knowledge is better than the sacrifice of material possessions. All actions ultimately lead to gaining knowledge.