Bhagavad Gita 18.8
Chapter 18: Freedom through renunciation
दुःखमित्येव यत्कर्म कायक्लेशभयात्त्यजेत् ।
स कृत्वा राजसं त्यागं नैव त्यागफलं लभेत् ॥ ८ ॥
He who relinquisheth an action from fear of physical suffering, saying "Painful," thus performing a passionate relinquishment, obtaineth not the fruit of relinquishment.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.