Bhagavad Gita 18.47
Chapter 18: Freedom through renunciation
श्रेयान् स्वधर्मो विगुणः परधर्मात्स्वनुष्ठितात् ।
स्वभावनियतं कर्म कुर्वन्नाप्नोति किल्बिषम् ॥ ४७ ॥
Better is one's own duty though destitute of merits than the well-executed duty of another. He who doeth the duty laid down by his own nature incurreth not sin.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.