Bhagavad Gita 2.32
यदृच्छया चोपपन्नं स्वर्गद्वारमपावृतम्। सुखिनः क्षत्रियाः पार्थ लभन्ते युद्धमीदृशम्।।2.32।।
yadṛcchayā copapannaṃ svargadvāramapāvṛtam| sukhinaḥ kṣatriyāḥ pārtha labhante yuddhamīdṛśam||2.32||
yadricchaya copapannam svargadvaramapavritam sukhinah kshatriyah partha labhante yuddhamidrisham2.32
Meaning
Such a war opens the doors to heaven. Only the most fortunate warriors receive the opportunity to fight such a righteous battle.
हे पार्थ! सौभाग्य से प्राप्त इस खुले स्वर्गद्वार के समान ऐसा युद्ध केवल सौभाग्यशाली क्षत्रिय को ही मिलता है।
This is verse 32 of 72 in Chapter 2 (Sankhya Yoga) of the Bhagavad Gita.