Chapter 3 · The Yoga of Action · Krishna said
Bhagavad Gita 3.27 — Ego thinks 'I am the doer'
प्रकृतेः क्रियमाणानि गुणैः कर्माणि सर्वशः। अहङ्कारविमूढात्मा कर्ताहमिति मन्यते ॥
prakṛteḥ kriyamāṇāni guṇaiḥ karmāṇi sarvaśaḥ | ahaṅkāravimūḍhātmā kartāhamiti manyate ||
Meaning
All actions are actually done by the qualities of nature, but a person confused by ego thinks, 'I am the doer.'