You banish a creature that you can see within range into a labyrinthine demiplane. The target remains there for the duration or until it escapes the maze.
The target can use its action to attempt to escape. When it does so, it makes a DC 20 Intelligence check. If it succeeds, it escapes, and the spell ends (a minotaur or goristro demon automatically succeeds).
When the spell ends, the target reappears in the space it left or, if that space is occupied, in the nearest unoccupied space.
The 2024 Player’s Handbook revised many spells, and the SRD 5.2 carries the new text. What changed from the 2014 version above:
Same level, casting time, range, components, duration and dice; the text is reworded for the 2024 rules glossary.
Casting time
Action
Range
60 feet
Components
V, S
Duration
Concentration, up to 10 minutes
School
Conjuration
Level
8
Classes
Wizard
Tags
concentration
You banish a creature that you can see within range into a labyrinthine demiplane. The target remains there for the duration or until it escapes the maze.
The target can take a Study action to try to escape. When it does so, it makes a DC 20 Intelligence (Investigation) check. If it succeeds, it escapes, and the spell ends.
When the spell ends, the target reappears in the space it left or, if that space is occupied, in the nearest unoccupied space.
2024 version from the SRD 5.2. Most tables settle on one edition, so check which one yours uses.