Srimad Bhagavatam Canto 07, Chapter 11, Text 32

SB 7.11.32

vrttya sva-bhava-krtaya
 vartamanah sva-karma-krt
hitva sva-bhava-jam karma
 sanair nirgunatam iyat
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
If one acts in his profession according to his position in the modes of nature and gradually gives up these activities, he attains the niskama stage.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
If one gradually gives up his hereditary customs and duties and tries to serve the Supreme Personality of Godhead in his natural position, he is gradually able to become free from these activities, and he attains the stage of niskama, freedom from material desires.
Srimad Bhagavatam Canto 07, Chapter 11, Text 31
Srimad Bhagavatam Canto 07, Chapter 11, Text 33-34