Srimad Bhagavatam Canto 10, Chapter 24, Text 17

 SB 10.24.17

dehan uccavacañ jantuh
 prapyotsrjati karmana
satrur mitram udasinah
 karmaiva gurur isvarah
 
Translation: 
 
Because it is karma that causes the conditioned living entity to accept and then give up different high- and low-grade material bodies, this karma is his enemy, friend and neutral witness, his spiritual master and controlling lord.
 
Purport: 
 
Even the demigods are bound and limited by the laws of karma. That Indra himself is subordinate to the laws of karma is explicitly stated in the Brahma-samhita (5.54): yas tv indra-gopam atha vendram aho sva-karma-bandhanurupa-phala-bhajanam atanoti. The Supreme Lord, Govinda, awards all creatures the appropriate results of their work. This is as true for mighty Indra, the lord of the material heavens, as it is for the germ called indra-gopa. The Bhagavad-gita (7.20) also states, kamais tais tair hrta-jñanah prapadyante ’nya-devatah. Only those who have lost their intelligence because of various material desires surrender unto demigods rather than worship the Supreme Lord. In fact, the demigods cannot award benefits to anyone independently, as stated by Lord Krsna in the Gita: mayaiva vihitan hi tan. All benefits are ultimately issued by the Lord Himself.
 
Thus it is not altogether incorrect to say that demigod worship is useless, since even the demigods are under the laws of karma. In fact, this is the case. But Lord Krsna, the Supreme Absolute Truth, is not subordinate to the law of karma; rather, He can independently offer or withhold His favor. This is confirmed in the verse from the Brahma-samhita quoted above, the third line of which is karmani nirdahati kintu ca bhakti-bhajam: “The Supreme Lord burns up all the accumulated karma of those engaged in His loving service.” Not only is Lord Krsna above the laws of material action and reaction, but He can immediately dissolve these laws for anyone who satisfies Him through loving service. Thus the almighty God is supreme in absolute freedom, and by surrendering to Him we can escape the bonds of karma and stop accepting their dismal rule as supreme.
Srimad Bhagavatam Canto 10, Chapter 24, Text 16
Srimad Bhagavatam Canto 10, Chapter 24, Text 18