Bhagavad Gita 3.27

प्रकृते: क्रियमानानि गुणै: कर्माणि सर्वश: |
अहंकारविमूढात्मा कर्ताहमिति मन्यते

Translation

All activities are carried out by the three modes of material nature. But in ignorance, the soul, deluded by false identification with the body, thinks of itself as the doer.