paramam purusham divyam
"He who meditates on Me as the Supreme Personality of Godhead, his mind constantly engaged in remembering Me, undeviated from the path, he, O Partha, is sure to reach Me."
Partha = Arjuna, anuchintayan = [ at the time of death] thinking [ of Sri Krishna], paramam = Supreme, purusham = Lord, divyam = grace, yati = reaches. By thinking of the Lord in the last moments of one's life, one gets the grace of the Lord, the Supreme Being. Here, we should not interpret that the person gets moksham, but attains what he was aspiring for. If he had been an Aishwaryarti, he would get the greatest wealth. What is this person to do? Cetasa = by mind, na = not, anya gamina = going other places, abhyasa = by constant practice, yoga = yoga, yuktena = together. That is by the mind not wandering elsewhere and thinking only of the Lord, he can remember the Lord at the last hours of the life. Abhyasa means repeated practice. To gain the greatest wealth, this person constantly and repeatedly practices to think of the Lord of such wealth. Yoga here denotes Bhakti yoga. So, a person with constant practice of bhakti yoga, and with mind not distracted by other things, in the last moments of life, if he remembers the Lord, the Most Supreme Being, with no equals or superior, reaches the Lord of the wealth he was aspiring. Though, Sri Krishna's private intention here is, that such a person would refine his prayer from mere wealth to ever lasting service in Vaikuntam, He is not mentioning it explicitly.