Bhagavad-gītā As It Is · Text 2.38
The duty of a kṣatriya and equanimity
सुखदुःखे समे कृत्वा लाभालाभौ जयाजयौ ।
ततो युद्धाय युज्यस्व नैवं पापमवाप्स्यसि ॥ ३८ ॥
sukha-duḥkhe same kṛtvā
lābhālābhau jayājayau
tato yuddhāya yujyasva
naivaṁ pāpam avāpsyasi
Do thou fight for the sake of fighting, without considering happiness or distress, loss or gain, victory or defeat – and by so doing you shall never incur sin.
Read Śrīla Prabhupāda's purport on Vedabase.io