Srimad Bhagavatam Canto 11, Chapter 10, Text 31

SB 11.10.31

gunah srjanti karmani
 guno ’nusrjate gunan
jivas tu guna-samyukto
 bhunkte karma-phalany asau
The material senses create material activities, either pious or sinful, and the modes of nature set the material senses into motion. The living entity, being fully engaged by the material senses and modes of nature, experiences the various results of fruitive work.
It has been explained in the previous verses that the living entity under the control of fruitive activities is pushed down into a hellish condition of life. In this verse the exact nature of the living entity’s dependence on fruitive activities is described. One can observe that one’s activities are performed by the material senses and that the living entity himself is merely conscious of such activities. One may be worshiping the demigods, enjoying sex or performing agricultural or intellectual activities, but in all cases the material senses are performing the work.
One may argue that the spirit soul initiates the activities of the senses and thus is the ultimate doer, but such false egotism is negated in this verse by the statement gunah srjanti karmani guno ’nusrjate gunan. The three modes of nature — goodness, passion and ignorance — stimulate the functions of the material senses, and the living entity, coming under the control of a particular mode of nature, merely experiences the good and bad results of his work. This does not negate the concept of free will, since the living entity chooses to associate with different modes of nature. By one’s eating, speaking, sexual activities, occupation, etc., one associates with various modes of nature and acquires a particular mentality. But in all cases the modes of nature themselves are acting, not the living entity. The word asau in this verse indicates that the living entity falsely considers himself to be the performer of work carried out by nature. As stated in Bhagavad-gita (3.27):
prakrteh kriyamanani
 gunaih karmani sarvasah
 kartaham iti manyate
“The bewildered spirit soul, under the influence of the three modes of material nature, thinks himself to be the doer of activities, which are in actuality carried out by nature.” The conditioned soul can be liberated simply by giving up this false egoistic conception of life and taking to the devotional service of the Lord, by which the living entity, or marginal potency of the Supreme Personality of Godhead, escapes the disturbing influence of the external potency called maya. In the devotional service of the Lord the liberated entity realizes his actual form of eternity, knowledge and bliss.
It is natural to perform activities with a desire to achieve a good result. The best results, however, can be attained by one who engages in the devotional service of the Lord with a desire to be reinstated in his constitutional position as the Lord’s loving servant. In this way the tendency to exploit one’s own activities for a particular result can be purified; then the modes of nature and the material senses will no longer engage the living entity in illusion. The living entity is by nature blissful, and when his illusion ceases, all suffering comes to an end. The liberated soul is then fit to reside in Vaikuntha, the kingdom of God.
Srimad Bhagavatam Canto 11, Chapter 10, Text 30
Srimad Bhagavatam Canto 11, Chapter 10, Text 32