Choose a creature within range. It must succeed on a Wisdom saving throw or become cursed for the duration of the spell. While cursed in this way, it can't enter any residence or cross any threshold without an invitation from one of the occupants. If the creature attempts to cross the threshold, it takes 2d10 Psychic damage and is pushed back 10 feet from the threshold.
Upcasting. If you cast this spell with 3rd level or higher, the duration is concentration, up to 10 minutes. If you use 4th level or higher, the duration is 8 hours. If you use 6th level or higher, the duration is 24 hours. If you use a 9th level, the spell lasts until it is dispelled. Using 4th level or higher grants a duration that doesn't require concentration.