Bhagavad Gita 18.36
Chapter 18: Freedom through renunciation
सुखं त्विदानीं त्रिविधं शृणु मे भरतर्षभ ।
अभ्यासाद्रमते यत्र दुःखान्तं च निगच्छति ॥ ३६ ॥
And now the threefold kinds of pleasure hear thou from Me, O bull of the Bhâratas. That in which one by practice rejoiceth, and which putteth an end to pain;
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.