Anesthesia

A creature touched by the caster becomes unconscious, insensate, or both - you decide when casting the spell. The creature may attempt a Constitution saving throw to resist. On a failed save, the creature feels weakened and groggy, gaining the poisoned condition.

The creature may make a new saving throw at the start of each of its turns. On three successes, the spell ends. If it fails its save three times, it falls unconscious and cannot be awakened for the duration except through magical means, or ceases to feel pain for the duration.

Creatures that don't sleep or cannot be charmed are immune to this spell.