Protection From Evil and Good

From Player's Handbook, page 270.

Description
1st-level abjuration


 * Casting Time: 1 action
 * Range: Touch
 * Components: V, S, M (holy water or powdered silver and iron, which the spell consumes)
 * Duration: Concentration, up to 10 minutes

Until the spell ends, one willing creature you touch is protected against certain types of creatures: aberrations, celestials, elementals, fey, fiends, and undead.

The protection grants several benefits. Creatures of those types have disadvantage on attack rolls against the target. The target also can't be charmed, frightened, or possessed by them. If the target is already charmed, frightened, or possessed by such a creature, the target has advantage on any new saving throw against the relevant effect.

Learned By

 * Classes: Cleric, Druid (OCF), Paladin, Warlock, Wizard
 * Subclasses: Fighter (Eldritch Knight), Fighter (Monster Hunter), Ranger (Horizon Walker), Ranger (Monster Slayer), Rogue (Arcane Trickster), Sorcerer (Clockwork Soul), Sorcerer (Divine Soul)