Bhagavad Gita 4.15

एवं ज्ञात्वा कृतं कर्म पूर्वैरपि मुमुक्षुभि: |
कुरु कर्मैव तस्मात्त्वं पूर्वैः पूर्वतरं कृतम्

Translation

Knowing this truth, even seekers of liberation in ancient times performed actions. Therefore, following the footsteps of those ancient sages, you too should perform your duty.