Bhagavad Gita 4.18

Chapter 4: Knowledge and the offering of action

कर्मण्यकर्म यः पश्येदकर्मणि च कर्म यः ।
स बुद्धिमान्मनुष्येषु स युक्तः कृत्स्नकर्मकृत् ॥ १८ ॥

He who seeth inaction in action, and action in inaction, he is wise among men, he is harmonious, even while performing all action.

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