David Hume said this quote

If my life be not my own, it were criminal for me to put it in danger, as well as to dispose of it; nor could one man deserve the appellation of hero, whom glory or friendship transports into the greatest dangers, and another merit the reproach of wretch or misereant who puts a period to his life, from the same or like motives.