Patanjali Yoga Sutra 4.3
Sanskrit Sutra
निमित्तमप्रयोजकं प्रकृतीनां वरणभेदस्तु ततः क्षेत्रिकवत्॥३॥
Swami Vivekananda's translation
Good and bad deeds are not the direct causes in the transformations of nature, but they act as breakers of obstacles to the evolutions of nature: as a farmer breaks the obstacles to the course of water, which then runs down by its own nature.
Chapter link: Yoga Sutra Chapter 4

Muni's Play