That spell is likely the 7th-level cleric spell and 9th-level sorcerer/wizard spell refuge: "[Y]ou create powerful magic in a specially prepared object [that] contains the power to instantly transport its possessor across any distance within the same plane to your abode.… To make use of the item, the subject speaks the command word at the same time that it rends or breaks the item…."
It's an interesting spell, having a particularly dramatic effect on the plot when a refuge object is found secreted among a defeated foe's possessions.
Note: The spell refuge was called succor when it was published for Advanced Dungeon & Dragons in Unearthed Arcana (1985). It kept that name in Advanced Dungeon & Dragons, 2nd Edition where that edition's Player's Handbook made it a common spell. This reader fully supports the spell's 3e (and Pathfinder by extension) name change despite believing role-playing games a fantastic vocabulary-building tool.