Srimad Bhagavatam Canto 06, Chapter 02, Text 15

SB 6.2.15

patitah skhalito bhagnah
 sandastas tapta ahatah
harir ity avasenaha
 puman narhati yatanah
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
If one chants the holy name of Hari and then dies because of an accidental misfortune, such as falling from the top of a house, slipping and suffering broken bones while traveling on the road, being bitten by a serpent, being afflicted with pain and high fever, or being injured by a weapon, one is immediately absolved from having to enter hellish life, even though he is sinful.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
As stated in Bhagavad-gita (8.6):
 
yam yam vapi smaran bhavam
 tyajaty ante kalevaram
tam tam evaiti kaunteya
 sada tad-bhava-bhavitah
 
“Whatever state of being one remembers when he quits his body, that state he will attain without fail.” If one practices chanting the Hare Krsna mantra, he is naturally expected to chant Hare Krsna when he meets with some accident. Even without such practice, however, if one somehow or other chants the holy name of the Lord (Hare Krsna) when he meets with an accident and dies, he will be saved from hellish life after death.
Srimad Bhagavatam Canto 06, Chapter 02, Text 14
Srimad Bhagavatam Canto 06, Chapter 02, Text 16