From a Buddhist point of view, the actual experience of death is very important. Although how or where we will be reborn is generally dependent on karmic forces, our state of mind at the time of death can influence the quality of our next rebirth. So at the moment of death, in spite of the great variety of karmas we have accumulated, if we make a special effort to generate a virtuous state of mind, we may strengthen and activate a virtuous karma, and so bring about a happy rebirth.
I have this tattooed on my left side! I love the saying and it's a perfect description of Karma, don't judge/discriminate and don't do to someone what you wouldn't want done to you.
O youth or young man, who fancy that you are neglected by the gods, know that if you become worse, you shall go to worse souls, or if better to the better... In every succession of life and death, you will do and suffer what like may fitly suffer at the hands of like. This is the justice of heaven.
The virtues we acquire, which develop slowly within us, are the invisible links that bind each one of our existences to the others - existences which the spirit alone remembers, for Matter has no memory for spiritual things.