Agonizing Rebuke

The caster blasts their target with cruel words and instills so much apprehension into them that they suffer mental distress at even the thought of attacking you. The creature must make a Wisdom saving throw. On a failure, it suffers 2d6 psychic damage each time it attacks the caster, casts a spell that harms you (even indirectly), or otherwise takes an action that causes harm. If this damage would reduce your target to 0 hit points or less, it instead drops to 1 hit point.

If the creature is attacks, it may make a new saving throw, ending the effects on a success.

At Higher Levels: When this spell is cast using a spell slot of 4th level or higher, the duration increases up to 10 minutes. When cast with a spell slot of 6th level or higher, the duration increases to 1 hour and concentration is no longer needed.