Random Walk (5e Spell)
From D&D Wiki
|Casting time:||1 action|
A creature you can see within range must succeed on a Wisdom saving throw. On a failure, you force them to momentarily blink out of existence. Choose either to roll 5d6 or 7d4.
After each die is rolled, the creature is teleported 5 feet in the corresponding direction, reappearing in that space. If the creature would arrive in a space already occupied by another object or creature, they are not teleported and take 4d6 force damage.
At Higher Levels. When you cast this spell using a spell slot of 6th level or higher, the amount of dice rolled for teleportation increases by one for each slot level above 5th.