Bhagavad Gita · 8.28
वेदेषु यज्ञेषु तपःसु चैवदानेषु यत्पुण्यफलं प्रदिष्टम्।अत्येति तत्सर्वमिदं विदित्वायोगी परं स्थानमुपैति चाद्यम्॥
vedeṣhu yajñeṣhu tapaḥsu chaiva dāneṣhu yat puṇya-phalaṁ pradiṣhṭam atyeti tat sarvam idaṁ viditvā yogī paraṁ sthānam upaiti chādyam
Whatever merit one gains through the study of the Vedas, through sacrifices, austerities, and charities, the yogi who knows this truth surpasses all of it and attains the supreme, primeval abode.
— Bhagavad Gita 8.28
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)