Forcecage Spell
D&D Forcecage Spell Description: This powerful spell brings into being an immobile, invisible cubical prison composed of either bars of force or solid walls of force (your choice).
Creatures within the area are caught and contained unless they are too big to fit inside, in which case the spell automatically fails. Teleportation and other forms of astral travel provide a means of escape, but the force walls or bars extend into the Ethereal Plane, blocking ethereal travel.
More: D&D Spells for Forcecage