Laconic / Sealed Good in a Can

A virtuous entity is imprisoned for centuries.
Thanks for releasing me, righteous warrior! Now, as a token of my appreciation, I will help you in your quest!

http://tvtropes.org/pmwiki/pmwiki.php/Laconic/SealedGoodInACan