Bhagavad Gita · 17.25
तदित्यनभिसन्धाय फलं यज्ञतपःक्रियाः।दानक्रियाश्च विविधाः क्रियन्ते मोक्षकाङ्क्षिभिः॥
tad ity anabhisandhāya phalaṁ yajña-tapaḥ-kriyāḥ dāna-kriyāśh cha vividhāḥ kriyante mokṣha-kāṅkṣhibhiḥ
Uttering 'Tat' (That), without aiming at the fruits, various acts of sacrifice, austerity, and charity are performed by seekers of liberation.
— Bhagavad Gita 17.25
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)