Bhagavad Gita 4.15
एवं ज्ञात्वा कृतं कर्म पूर्वैरपि मुमुक्षुभिः। कुरु कर्मैव तस्मात्त्वं पूर्वैः पूर्वतरं कृतम्।।4.15।।
evaṃ jñātvā kṛtaṃ karma pūrvairapi mumukṣubhiḥ| kuru karmaiva tasmāttvaṃ pūrvaiḥ pūrvataraṃ kṛtam||4.15||
evam jnatva kritam karma purvairapi mumukshubhih kuru karmaiva tasmattvam purvaih purvataram kritam4.15
Meaning
The ancient seekers of liberation performed action with this understanding. Therefore, follow the example of the great souls of the past and perform your duty as they did.
पूर्व के मुमुक्ष पुरुषों द्वारा भी इस प्रकार जानकर ही कर्म किया गया है; इसलिये तुम भी पूर्वजों द्वारा सदा से किये हुए कर्मों को ही करो।
This is verse 15 of 42 in Chapter 4 (Jnana Karma Sanyasa Yoga) of the Bhagavad Gita.