Srimad-Bhagavatam: Canto 10 - Chapter 1 - Verse 41
Sanskrit:
यथा भ्रमरिकादृष्ट्या भ्राम्यतीव महीयते ।चित्ते कर्तरि तत्रात्मा कर्तेवाहंधिया स्मृत: ॥ ४१ ॥
ITRANS:
yathā bhramarikā-dṛṣṭyābhrāmyatīva mahīyatecitte kartari tatrātmākartevāhaṁ-dhiyā smṛtaḥ
Translation:
Just as a person who is whirling around perceives the ground to be turning, one who is affected by false ego thinks himself the doer, when actually only his mind is acting.
Purport:
Śrīla Viśvanātha Cakravartī gives a parallel idea: Although our happiness and distress are caused by our own interaction with the material qualities, we perceive the Lord to be their cause.