Devavratha became Bhishma after he took bhishana pratigya ('terrible oath') — vow of life-long celibacy
https://www.google.com/search?q=Matsyagandha