2.32

यदृच्छया चोपपन्नं स्वर्गद्वारमपावृतम् ।
सुखिनः क्षत्रियाः पार्थ लभन्ते युद्धमीदृशम् ॥

yadṛcchayā copapannaṃ svargadvāram apāvṛtam
sukhinaḥ kṣatriyāḥ pārtha labhante yuddham īdṛśam

Kṛṣṇa (कृष्ण) continues, and the battle is something that arrived of itself.

The verse

Happy are the kṣatriyas (क्षत्रिय), son of Pṛthā (पृथा), who obtain a battle of this kind, arrived unasked, an opened door of heaven.

नेपालीमा

हे पृथाका छोरा, नमागी आएको, स्वर्गको खुलेको ढोका भएको यस्तो युद्ध पाउने क्षत्रियहरू सुखी हुन्छन्।

Where it sits

The happy ones are the kṣatriyas (क्षत्रिय) who obtain a battle that came of itself, an opened door of heaven. The personal stake in the pairs is set down at 2.38.

Split: यदृच्छया + च + उपपन्नम् + स्वर्ग-द्वारम् + अपावृतम् + सुखिनः + क्षत्रियाः + पार्थ + लभन्ते + युद्धम् + ईदृशम्

yadṛcchayā + ca + upapannam + svarga-dvāram + apāvṛtam + sukhinaḥ + kṣatriyāḥ + pārtha + labhante + yuddham + īdṛśam

Sanskrit, in depth

The words

देवनागरीWordGrammarSense
यदृच्छयाyadṛcchayāinstrumental of yadṛcchā (यदृच्छा)of its own accord, unasked. What comes of itself.
चcaindeclinableand.
उपपन्नम्upapannamaccusative neuterarrived. Agrees with yuddham (युद्धम्).
स्वर्ग-द्वारम्svarga-dvāramaccusativea door of heaven.
अपावृतम्apāvṛtamaccusativeopened, uncovered. From apa-ā-vṛ (अप-आ-वृ).
सुखिनःsukhinaḥnominative pluralhappy. Agrees with kṣatriyāḥ (क्षत्रियाः).
क्षत्रियाःkṣatriyāḥnominative pluralkṣatriyas (क्षत्रिय).
पार्थpārthavocativeson of Pṛthā (पृथा).
लभन्तेlabhantepresent, 3rd plural, middlethey obtain.
युद्धम्yuddhamaccusativea battle.
ईदृशम्īdṛśamaccusativeof this kind.

The phrases

yadṛcchayā ca upapannam (यदृच्छया च उपपन्नम्) is how it came. And arrived of itself, unasked. च + उपपन्नम् ca + upapannam is copapannam (चोपपन्नम्).

स्वर्गद्वारम् अपावृतम् svargadvāram apāvṛtam is what kind of arrival. An opened door of heaven. Both agree with yuddham (युद्धम्), along with upapannam (उपपन्नम्) and īdṛśam (ईदृशम्). The battle is the door. The door is open.

सुखिनः क्षत्रियाः पार्थ लभन्ते युद्धम् ईदृशम् sukhinaḥ kṣatriyāḥ pārtha labhante yuddham īdṛśam is who is happy. Happy are the kṣatriyas (क्षत्रिय), son of Pṛthā (पृथा), who obtain a battle of this kind. युद्धम् + ईदृशम् yuddham + īdṛśam is yuddham īdṛśam (युद्धमीदृशम्).

Sanskrit in this line

yadṛcchayā (यदृच्छया) is instrumental, "by its own coming." The battle is upapannam (उपपन्नम्), arrived, and the instrument of that arrival is yadṛcchā (यदृच्छा), what happens without being sought. He is not the man who went looking for a sin to commit. The accusatives upapannam (उपपन्नम्), svargadvāram (स्वर्गद्वारम्), apāvṛtam (अपावृतम्), and īdṛśam (ईदृशम्) all agree with yuddham (युद्धम्). One noun, four descriptions.

Say it back

How the battle arrived, and what door it is. yadṛcchayā (यदृच्छया).