Sanctuary

Level & School
1st-level abjuration
Casting Time
Bonus action
Range
30 feet
Components
V, S, M (a shard of glass from a mirror)
Duration
1 minute
Classes
Cleric

You ward a creature within range. Until the spell ends, any creature who targets the warded creature with an attack roll or a damaging spell must succeed on a Wisdom saving throw or either choose a new target or lose the attack or spell. This spell doesn't protect the warded creature from areas of effect.

The spell ends if the warded creature makes an attack roll, casts a spell, or deals damage.

Level & School
1st-level abjuration
Casting Time
Bonus action
Range
30 feet
Components
V, S, M (a small silver mirror)
Duration
1 minute
Classes
Cleric

You ward a creature within range against attack. Until the spell ends, any creature who targets the warded creature with an attack or a harmful spell must first make a Wisdom saving throw. On a failed save, the creature must choose a new target or lose the attack or spell. This spell doesn't protect the warded creature from area effects, such as the explosion of a fireball.

If the warded creature makes an attack, casts a spell that affects an enemy, or deals damage to another creature, this spell ends.

Sanctuary 5.5e 2024 vs. 5e 2014 edition differences

The 2024 version specifies "attack roll" and "damaging spell," clarifying targeting conditions, and states the spell ends if the warded creature makes an attack roll, casts a spell, or deals damage, whereas the 2014 version ends if the creature makes an attack, casts a spell affecting an enemy, or deals damage.