Bhagavad Gita 18.61

ईश्वरः सर्वभूतानां हृद्देशेऽर्जुन तिष्ठति |
ब्रह्मायन्सर्वभूतानि यन्त्ररूधनि मयाया

Translation

The Supreme Lord dwells in the hearts of all living beings, O Arjun. According to their karmas, He directs the wanderings of the souls, who are seated on a machine made of material energy.