Bhagavad Gita

ಹತೋ ವಾ ಪ್ರಾಪ್ಸ್ಯಸಿ ಸ್ವರ್ಗಂ ಜಿತ್ವಾ ವಾ ಭೋಕ್ಷ್ಯಸೇ ಮಹೀಮ್ ।
ತಸ್ಮಾದುತ್ತಿಷ್ಠ ಕೌಂತೇಯ ಯುದ್ಧಾಯ ಕೃತನಿಶ್ಚಯಃ ॥೩೭॥
hato vā prāpsyasi svargaṃ jitvā vā bhokṣyase mahīm |
tasmāduttiṣṭha kauṃteya yuddhāya kṛtaniścayaḥ ||37||

Gist of the sloka:
If you lose the war, you will earn a place in Heaven. If you win you will get rulership over the land. Therefore, do not hesitate anymore and stand up to fight.
We do not know if we will win the war. When fighting in a war for righteousness, death or win, both opens the doors to heaven. This is war is not being fought on basis of selfishness or personal goals. The war is against evil and for dharma. Therefore, keeping these thoughts in mind, get up and fight.
It is important to keep the fact that any actions we perform, should be in alignment with Sanathana dharma. One who is following the dharma and walking in its path, should never fear. One should not worry about the results of following the dharma, for at the end it always leads towards final emancipation [mukthi].