Srimad Bhagavatam Canto 10, Chapter 01, Text 48

SB 10.1.48

mrtyur buddhimatapohyo
yavad buddhi-balodayam
yady asau na nivarteta
naparadho ’sti dehinah
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
As long as he has intelligence and bodily strength, an intelligent person must try to avoid death. This is the duty of every embodied person. But if death cannot be avoided in spite of one’s endeavors, a person facing death commits no offense.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
It is natural for a person facing untimely death to try his best to save himself. This is one’s duty. Although death is sure, everyone should try to avoid it and not meet death without opposition because every living soul is by nature eternal. Because death is a punishment imposed in the condemned life of material existence, the Vedic culture is based on avoiding death (tyaktva deham punar janma naiti). Everyone should try to avoid death and rebirth by cultivating spiritual life and should not submit to death without struggling to survive. One who is not trying to stop death is not an intelligent human being. Because Devaki was face to face with imminent death, it was Vasudeva’s duty to save her, as he was trying his best to do. He therefore considered another way to approach Kamsa so that Devaki would be saved.
Srimad Bhagavatam Canto 10, Chapter 01, Text 47
Srimad Bhagavatam Canto 10, Chapter 01, Text 49-50