One of the traits of the Ring of Mind Shielding is:
If you die while wearing the ring, your soul enters it, unless it already houses a soul. You can remain in the ring or depart for the afterlife. As long as your soul is in the ring, you can telepathically communicate with any creature wearing it. A wearer can't prevent this telepathic communication. (Ring of Mind Shielding, Basic Rules, pg. 191)
Certain spells, such as Raise Dead and Resurrection, have the qualifying statements:
If the creature's soul is both willing and at liberty to rejoin the body, the creature returns to life with 1 hit point. (Raise Dead, Basic Rules, pg. 270)
If its soul is free and willing, the target returns to life with all its hit points. (Resurrection, Basic Rules, pg. 272)
If a spell is cast to bring a creature back to life whose soul resides within a ring of mind shielding, is that soul considered "free" to be resurrected, or would it need to depart for the afterlife first?
Example: A creature dies while wearing a Ring of Mind Shielding and chooses to enter the ring. Later, a group stumbles upon the ring, and offers to resurrect the soul inside (for simplicity, let's assume the body is still intact).
Can the soul be resurrected directly from within the ring (with the spell effectively creating a third option beyond "remain" or "move on")? Or does it have to choose to move on first, trusting the group that found it to actually follow through with the resurrection?