Bhagavad Gita 3.35
Chapter 3, Verse 35
श्रेयान्स्वधर्मो विगुणः परधर्मात्स्वनुष्ठितात्। स्वधर्मे निधनं श्रेयः परधर्मो भयावहः ॥
śreyān swadharmo viguṇaḥ paradharmāt svanuṣṭhitāt swadharme nidhanaṃ śreyaḥ paradharmo bhayāvahaḥ || 3.35 ||
English translation
It is better to do one's own duty, however lacking in merit, than to do that of another, even though efficiently. It is better to die doing one's own duty, for doing the duty of another is fraught with danger.
Shri Purohit Swami — Bhagavad Gita English translation
Commentary
It is indeed better for man to die discharging his own duty though destitute of merit than for him to live doing the duty of another though performed in a perfect manner. For the duty of another has its pitfalls. The duty of a Kshatriya is to fight in a righteous battle. Arjuna must fight. This is his duty. Even if he dies in the discharge of his own duty? it is better for him. He will go to heaven. He should not do the duty of another man. This will bring him peril. He should not stop from fighting and enter the path of renunciation. (Cf.XVIII.47).
Swami Sivananda — Bhagavad Gita English commentary (public-domain dataset)