There are some enemies that put you to sleep and if a turn goes by, and you are still asleep, then you will regain some HP/SP. I haven't tried casting sleep on an ally character, not sure if you can. When I get to the end of the palace I expend every ounce of my hp/sp and get to as high of a level as I can before I leave.