Shiva Purana
यथा हि मरणं श्रेष्ठमुशंत्यनशनादिभिः ॥ शास्त्रविश्रंभधीरेण मनसा क्रियते यतः ॥ ५२ ॥
Since voluntary death by means of fasts etc. is sought with a mind full of confidence and devotion, they say that this death is commendable.
english translation
yathA hi maraNaM zreSThamuzaMtyanazanAdibhiH ॥ zAstravizraMbhadhIreNa manasA kriyate yataH ॥ 52 ॥
hk transliteration by Sanscript