6.17

युक्ताहारविहारस्य युक्तचेष्टस्य कर्मसु ।
युक्तस्वप्नावबोधस्य योगो भवति दुःखहा ॥

yuktāhāravihārasya yuktaceṣṭasya karmasu
yuktasvapnāvabodhasya yogo bhavati duḥkhahā

Kṛṣṇa (कृष्ण) is still speaking.

The verse

For one whose eating and movement are measured, whose effort in actions is measured, and whose sleep and waking are measured, yoga becomes the destroyer of pain.

नेपालीमा

जसको खानपिन र हिँडडुल मित छ, कर्ममा प्रयास मित छ, र सुत्ने र ब्यूँझने मित छ, त्यसका लागि योग दुःख नाश गर्ने बन्छ।

Where it sits

6.16 said where yoga is not. This verse says where it is. The same word yukta (युक्त) that named the yogin in 6.8 now names the measure of ordinary bodily life.

Split: युक्त-आहार-विहारस्य + युक्त-चेष्टस्य + कर्मसु + युक्त-स्वप्न-अवबोधस्य + योगः + भवति + दुःख-हा

yukta-āhāra-vihārasya + yukta-ceṣṭasya + karmasu + yukta-svapna-avabodhasya + yogaḥ + bhavati + duḥkha-hā

Sanskrit, in depth

The words

देवनागरीWordGrammarSense
युक्त-आहार-विहारस्यyukta-āhāra-vihārasyagenitive singularof one whose eating and whose moving about are measured.
युक्त-चेष्टस्यyukta-ceṣṭasyagenitive singularof one whose effort is measured.
कर्मसुkarmasulocative pluralin actions.
युक्त-स्वप्न-अवबोधस्यyukta-svapna-avabodhasyagenitive singularof one whose sleep and waking are measured.
योगःyogaḥnominative singularyoga.
भवतिbhavatipresent, 3rd singularbecomes.
दुःख-हाduḥkha-hānominative singularthe destroyer of pain. Nominative of duḥkhahan (दुःखहन्).

The phrases

Three genitives describe one man, the opposite of the four in 6.16. His food and his going about are yukta (युक्त), measured. His effort in actions is measured. His sleep and his waking are measured.

yogaḥ bhavati duḥkhahā (योगः भवति दुःखहा) is the result. For that man, yoga becomes what ends pain.

yukta āhāra (युक्त आहार) is yuktāhāra (युक्ताहार). svapna avabodhasya (स्वप्न अवबोधस्य) is svapnāvabodhasya (स्वप्नावबोधस्य).

Sanskrit in this line

duḥkhahā (दुःखहा) is an agent noun from han (हन्), "strike, destroy." The nominative of a compound ending in han (हन्) is --hā (हा), not --han (हन्). It agrees with yogaḥ (योगः). The genitives do not own the yoga as a possession. They are the person for whom this happens, the same construction as the genitives in 6.16.

Say it back

Three measured things, then what yoga becomes. If duḥkhahā (दुःखहा) comes out as "a painful yoga," the compound has been read backwards.