The Word Of Unbinding by Ursula K. Le Guin

A magician trapped by a dark binding in a lonely prison struggles as a spreading shadow consumes his world; facing dwindling options, he learns and speaks a powerful word that severs the bonds holding him, forcing a final choice between self and release and exploring the costs of freedom, the power of true names, and the nature of sacrifice.