Amulet of the Planes
Wondrous item, very rare, requires attunement · 2014 rules, SRD 5.1
Action: name a known plane, DC 15 Int check to cast plane shift there; on a failure you and creatures within 15 ft go to a random destination.
Also in the 2024 rules (SRD 5.2).