Stephen Mitchell said this quote

Whatever thought grips the mind at the time of death is the one which will propel it and decide for it the nature of its future birth. Thus if one wants to attain god after death, one has to think of him steadfastly... This is not as simple as it sounds, for at the time of death the mind automatically flies to the thought of an object (i.e. money, love) which has possessed it during its sojourn in the world. Thus one must think of god constantly.