Bhagavad Gita: Chapter 5, Verse 24

योऽन्त:सुखोऽन्तरारामस्तथान्तज्र्योतिरेव य: ।
स योगी ब्रह्मनिर्वाणं ब्रह्मभूतोऽधिगच्छति ।। 24।।

yo 'ntaḥ-sukho 'ntar-ārāmas tathāntar-jyotir eva yaḥ
sa yogī brahma-nirvāṇaṁ brahma-bhūto 'dhigachchhati

yaḥwho; antaḥ-sukhaḥhappy within the self; antaḥ-ārāmaḥenjoying within the self; ; tathāas well as; antaḥ-jyotiḥillumined by the inner light; evacertainly; yaḥwho; ; saḥhe; yogīyogi; brahma-nirvāṇamliberation from material existence; brahmabhūtaḥ united with the Lord; adhigachchhatiattains

yo 'ntah-sukho 'ntar-aramas tathantar-jyotir eva yah
sa yogi brahma-nirvanam brahma-bhuto 'dhigachchhati

Translation

BG 5.24: Those who are happy within themselves, enjoying the delight of God within, and are illumined by the inner light, such yogis are united with the Lord and are liberated from material existence.

Commentary

“Inner light” is the divine knowledge that is bestowed from within in the form of realization, by the grace of God, when we surrender to Him.  The Yog Darśhan states:

ṛitambharā tatra prajñā   (1.48)

In the state of samadhi, one's intellect becomes filled with realization of the Truth.

After instructing Arjun about the need to withstand the impulses of desire and anger, Shree Krishna reveals the confidential means of practicing this.  The words yo’ntah sukho mean “one who is internally happy.”  There is one kind of happiness that we get from external objects, and another kind of happiness that we experience from within when we absorb the mind in God.  If we do not experience happiness within, we will not be able to permanently resist external temptations.  But when the bliss of God starts flowing within the heart, then the fleeting external pleasures seem trivial in comparison and are easy to renounce. 

Saint Yamunacharya states:

yadāvadhi mama chetaḥ kṛiṣhṇa-padāravinde

nava-nava-rasa-dhāmanudyata rantum āsīt

tadāvadhi bata nārī-saṅgame smaryamāne

bhavati mukha-vikāraḥ suṣhṭu niṣhṭhīvanaṁ cha

“Ever since I have begun meditating upon the lotus-like feet of Lord Krishna, I have been experiencing ever-increasing bliss.  If by chance the thought of sex pleasure comes to my mind, I spit at the thought and curl my lips in distaste.”