alarm-xphb

Alarm

1st-level, Abjuration (ritual)

You set an alarm against intrusion. Choose a door, a window, or an area within range that is no larger than a 20-foot Cube. Until the spell ends, an alarm alerts you whenever a creature touches or enters the warded area. When you cast the spell, you can designate creatures that won't set off the alarm. You also choose whether the alarm is audible or mental:

Classes: Artificer; Bard (College of Lore); Bard; Fighter (Eldritch Knight); Paladin (Oath of the Watchers); Ranger; Rogue (Arcane Trickster); Sorcerer (Clockwork Sorcery); Wizard (Abjurer); Wizard

Source: Player's Handbook (2024) p. 239. Available in the SRD and the Free Rules (2024)