hitvā sva-bhāva-jaṁ karma
śanair nirguṇatām iyāt
vṛttyā—with the profession; sva-bhāva-kṛtayā—performed according to one’s modes of material nature; vartamānaḥ—existing; sva-karma-kṛt—executing his own work; hitvā—giving up; sva-bhāva-jam—born from one’s own modes of nature; karma—activities; śanaiḥ—gradually; nirguṇatām—transcendental position; iyāt—may attain.
If one acts in his profession according to his position in the modes of nature and gradually gives up these activities, he attains the niṣkāma stage.
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 niṣkāma, freedom from material desires.
Link to this page: https://prabhupadabooks.com/sb/7/11/32