martyo yada tyakta-samasta-karma
niveditatma vicikirsito me
mayatma-bhuyaya ca kalpate vai
martyah—the living entity subjected to birth and death; yada—as soon as; tyakta—given up; samasta—all; karma—fruitive activities; nivedita-atma—a fully surrendered soul; vicikirsitah—desired to act; me—by Me; tada—at that time; amrtatvam—immortality; pratipadyamanah—attaining; maya—with Me; atma-bhuyaya—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 Srimad-Bhagavatam (11.29.34). Krsna 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