Bhishma received the Ichha Mrityu boon from his father Shantanu, granting him the power to choose the time of his death. This meant he could only die when he willed to, not by anyone else's hand. This boon kept him alive during the entire Kurukshetra war until he chose to lie down on his bed of arrows.