In the Mahabharata, King Shantanu wants to marry Satyavati. Her father, a fisherman, agrees only if her children will inherit the throne. Shantanu’s son Devavrata gives up his claim and vows lifelong celibacy. He pledges to serve whoever sits on the throne of Hastinapura. For this terrible vow he is called Bhishma.
Main aajivan akhand brahmacharya ka paalan karunga. I will keep unbroken celibacy all my life. This is the vow in the Hindi retelling by Aaj Tak.