The rule is, whatever we think of at the time of death will have an impact on our next birth. In old times in india, they would take the dying person near the gunga, the river ganga to remember something divine or holy. The one who passes in this way will attain to god. So that's a statutary warning that be careful of what we think about at the timeof death.
Swami Sarvapriyananda teaches Chapter 8 (Verses 5-7) of the Bhagavad Gita. In this series of talks, Swami Sarvapriyananda unfolds the highest truths of Vedanta through the study of the Bhagavad Gita (The Song of God).