Tsunetomo Yamamoto said this quote

Bushido is realized in the presence of death. This means choosing death whenever there is a choice between life and death. There is no other reasoning.