तं विद्याद् दुःखसंयोगवियोगं योगसंज्ञितम्।
स निश्चयेन योक्तव्यो योगोऽनिर्विण्णचेतसा॥23॥
taṃ vidyād duḥkhasaṃyogaviyogaṃ yogasaṃjñitam sa niścayena yoktavyo yogo 'nirviṇṇacetasā
Know that state of being parted from the union with sorrow by the name of yoga. This yoga should be practised with firm resolve and with a mind that does not lose heart.
Yoga usually means joining, but here Shri Krishna calls it a parting from sorrow. Being joined to the Self and being freed from sorrow are two sides of one thing. The second half of the verse gives the seeker patience: even when the mind wanders again and again, do not grow tired and give up the practice.
tam: that; vidyat: one should know; duhkha-samyoga-viyogam: the parting from union with sorrow; yoga-sanjnitam: called yoga; sah: that; nishchayena: with firm resolve; yoktavyah: should be practised; yogah: yoga; anirvinna-chetasa: with a mind that does not lose heart

