When one dies in the mode of goodness, he attains to the pure higher planets of the great sages.
Author Name:-Sri Ramanuja
Purport
Sri Ramanuja
14.14 When the ‘Sattva prevails’ i.e., while the Sattva continues to be prevalent, if the embodies self meets with death, It reaches the pure worlds, i.e., regions conducive to the knowledge of the self. The purport is this: If Satva preponderates in a person at the time of death, he will be reborn in the families of those who have the knowledge of the self, and thus be qualified to perform auspicious acts which are the means of attaining the true knowledge of the self..
Author Name:-Sri Adi Shankaracharya
Purport
Sri Adi Shankaracharya
14.14-15 Yada etc. Rajasi etc. When the Sattva is predominantly on the increase on account of increase on account on account of incessantly practising actions of the Sattva throughout the entire life-at that [time] having met dissolution [of body], one attains the auspicious worlds. Likewise whosoever has practised throughout his life the activities of the Rajas, he, by his [last] journey attains manhood for mixed enjoyment. Likewise : i.e. in the same order, if one practises action of the Tamas alone by one’s entire life, then [on his death] he is reborn in the bodies of the hell, of the animals, of the trees and so on. Those, who explain [the passage under study to the effect] : ‘These results [are for him in whom] the Sattva etc., have predominantly increased only at the time of death’ – these commentators have not correctly entered into (grasped) the behaviour of the embodied. For, nothing but delusion arises, by all means at the last moment, without exception in the case of one and all. However, with regard to our explanation [given above] these passages and other verses (Ch. VIII, 5ff) speak in one voice.