Bhagavad Gita · 2.37
हतो वा प्राप्स्यसि स्वर्गं जित्वा वा भोक्ष्यसे महीम्।तस्मादुत्तिष्ठ कौन्तेय युद्धाय कृतनिश्चयः॥
hato vā prāpsyasi svargaṁ jitvā vā bhokṣhyase mahīm tasmād uttiṣhṭha kaunteya yuddhāya kṛita-niśhchayaḥ
If you are killed, you will attain heaven; if you are victorious, you will enjoy the earth. Therefore, arise, O son of Kunti, resolved to fight!
— Bhagavad Gita 2.37
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)