Srimad Bhagavatam Canto 06, Chapter 10, Text 33

SB 6.10.33

dvau sammatav iha mrtyu durapau
 yad brahma-sandharanaya jitasuh
kalevaram yoga-rato vijahyad
 yad agranir vira-saye ’nivrttah
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
There are two ways to meet a glorious death, and both are very rare. One is to die after performing mystic yoga, especially bhakti-yoga, by which one can control the mind and living force and die absorbed in thought of the Supreme Personality of Godhead. The second is to die on the battlefield, leading the army and never showing one’s back. These two kinds of death are recommended in the sastra as glorious.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Thus end the Bhaktivedanta purports of the Sixth Canto, Tenth Chapter, of the Srimad-Bhagavatam, entitled “The Battle Between the Demigods and Vrtrasura.”
Srimad Bhagavatam Canto 06, Chapter 10, Text 32
Srimad Bhagavatam Canto 06, Chapter 10 Narration