martyo yadā tyakta-samasta-karmā
niveditātmā vicikīrṣito me
mayātma-bhūyāya ca kalpate vai
martyaḥ—the living entity subjected to birth and death; yadā—as soon as; tyakta—given up; samasta—all; karmā—fruitive activities; nivedita-ātmā—a fully surrendered soul; vicikīrṣitaḥ—desired to act; me—by Me; tadā—at that time; amṛtatvam—immortality; pratipadyamānaḥ—attaining; mayā—with Me; ātma-bhūyāya—for becoming of a similar nature; ca—also; kalpate—is eligible; vai—certainly.
" 'The living entity who is subjected to birth and death attains immortality when he gives up all material activities, dedicates his life to the execution of My order, and acts according to My directions. In this way he becomes fit to enjoy the spiritual bliss derived from exchanging loving mellows with Me.'
This is a quotation from Śrīmad-Bhāgavatam (11.29.34). Kṛṣṇa was advising His most confidential servant, Uddhava, about sambandha, abhidheya and prayojana. These concern one's relationship with the Supreme Personality of Godhead and the activities of that relationship, as well as the perfection of life. The Lord also described the characteristics of confidential devotees.
Link to this page: https://prabhupadabooks.com/cc/madhya/22/103