Bhagavad Gita · Chapter 9: The Royal Knowledge and Royal Secret
Bhagavad Gita 9.28
शुभाशुभफलैरेवं मोक्ष्यसे कर्मबन्धनैः ।
संन्यासयोगयुक्तात्मा विमुक्तो मामुपैष्यसि ॥
śubhāśubhaphalairevaṃ mokṣyase karmabandhanaiḥ | saṃnyāsayogayuktātmā vimukto māmupaiṣyasi ||
In this way you will be freed from the bonds of action, with their good and bad results. With your self disciplined by the yoga of renunciation, you will be liberated and will come to me.
Modern context
Offering everything frees a person from the bonds of action, both good and bad results. Why good results too? Because pride in good deeds binds just as guilt about bad ones does. When every act is offered, neither credit nor blame sticks to the doer. This is the 'yoga of renunciation' of chapter 5, achieved not by stopping action but by giving it away.