यं यं वापि स्मरन्भावं त्यजत्यन्ते कलेवरम्। तं तमेवैति कौन्तेय सदा तद्भावभावितः
yaṁ yaṁ vāpi smaran bhāvaṁ tyajatyante kalevaram taṁ tam evaiti kaunteya sadā tad-bhāva-bhāvitaḥ
Whatever sphere of being the mind of a man is intent on at the time of death, to that he will go.
Translated by Shri Purohit Swami
Whoever at the end leaves the body, thinking of any being, to that being only does he go, O son of Kunti (Arjuna), due to his constant thought of that being.
Translated by Swami Sivananda
Word meanings (from the gita/gita dataset)
yam yam—whatever; vā—or; api—even; smaran—remembering; bhāvam—remembrance; tyajati—gives up; ante—in the end; kalevaram—the body; tam—to that; tam—to that; eva—certainly; eti—gets; kaunteya—Arjun, the son of Kunti; sadā—always; tat—that; bhāva-bhāvitaḥ—absorbed in contemplation