Bhagavad Gita 18.58

Chapter 18: Freedom through renunciation

मच्चित्तः सर्वदुर्गाणि मत्प्रसादात्तरिष्यसि ।
अथ चेत्त्वमहङ्कारान्न श्रोष्यसि विनङ्क्ष्यसि ॥ ५८ ॥

Thinking on Me, thou shalt overcome all obstacles by My grace: but if from egoism thou wilt not listen, thou shalt be destroyed utterly.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.